Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix headers undefined #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.3.0
v11.12.0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ identifier=com.luckymarmot.PawExtensions.PostmanImporter
extensions_dir=$(HOME)/Library/Containers/com.luckymarmot.Paw/Data/Library/Application Support/com.luckymarmot.Paw/Extensions/

build:
npm run build
yarn build
cp README.md LICENSE ./build/$(identifier)/

clean:
Expand Down
2 changes: 1 addition & 1 deletion PostmanImporter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PostmanImporter = ->

# Add Headers
# Postman stores headers like HTTP headers, separated by \n
postmanHeaders = postmanRequest["headers"].split "\n"
postmanHeaders = (postmanRequest["headers"] || '').split "\n"
for headerLine in postmanHeaders
match = headerLine.match /^([^\s\:]*)\s*\:\s*(.*)$/
if match
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
},
"scripts": {
"build": "rm -rf dist/ && BUILD_ENV=build ./node_modules/.bin/webpack --bail --display-error-details",
"test": "echo 'Error: no test specified'",
"lint": "./node_modules/eslint/bin/eslint.js -c linting/prod.yaml src/"
},
"options": {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config = {
{
loader: 'json-loader',
include: [
path.resolve(__dirname, 'node_modules/api-flow/node_modules/swagger-schema-official')
path.resolve(__dirname, 'node_modules/swagger-schema-official')
],
test: /\.json$/
}
Expand Down
Loading