-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjustments for using module.exports.default, require(form-urlencoded…
…).default
- Loading branch information
1 parent
6cb626d
commit a4406ca
Showing
5 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(The MIT License) | ||
|
||
Copyright (c) 2012-2017 Bumblehead <[email protected]> | ||
Copyright (c) Bumblehead <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the 'Software'), to deal in | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol | |
// Timestamp: 2017.07.04-19:19:11 (last modified) | ||
// Author(s): Bumblehead (www.bumblehead.com), JBlashill ([email protected]), Jumper423 ([email protected]) | ||
|
||
module.exports = function (data) { | ||
module.exports.default = function (data) { | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
|
||
var sorted = Boolean(opts.sorted), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "form-urlencoded", | ||
"main": "dist/form-urlencoded", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Return an object as an 'x-www-form-urlencoded' string", | ||
"author": "Chris <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -46,7 +46,7 @@ | |
"jasmine-spec-reporter": "3.2.0" | ||
}, | ||
"scripts": { | ||
"test": "node node_modules/jasmine/bin/jasmine.js --verbose", | ||
"test": "jasmine --verbose", | ||
"start": "./node_modules/babel-cli/bin/babel.js --plugins transform-es2015-unicode-regex --presets es2015 -d dist/ form-urlencoded.js", | ||
"prepare": "npm start && npm test" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
// Timestamp: 2017.07.05-02:33:29 (last modified) | ||
// Author(s): bumblehead <[email protected]> | ||
|
||
var formurlencoded = require('../'); | ||
var formurlencoded = require('../').default; | ||
|
||
// tests assume behaviour not given in ecmascript specification, | ||
// object properties accessed in 'order' | ||
|