Skip to content

Commit 54172e1

Browse files
committed
Merge branch 'hotfix#7'
2 parents 0cce0a1 + 513a496 commit 54172e1

7 files changed

Lines changed: 11 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ const str = param(obj);
4545
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"
4646
```
4747

48-
*You will need to add `"esModuleInterop": true` to the `"compilerOptions"` directive in `tsconfig.json`.*
48+
*You will need to add `"esModuleInterop": true` to the `"compilerOptions"` field in `tsconfig.json`.*
4949

5050
ES Modules:
5151

5252
```html
5353
<script type="module">
54-
import { param } from './esm/jquery-param.es.js';
54+
import param from './esm/jquery-param.es.js';
5555
5656
const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };
5757
const str = param(obj);

esm/jquery-param.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ var param = function (a) {
4747
return buildParams('', a).join('&');
4848
};
4949

50-
export { param };
50+
export default param;

esm/jquery-param.es.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-param",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "equivalent function to jQuery.param",
55
"main": "jquery-param.js",
66
"module": "esm/jquery-param.es.js",
@@ -33,7 +33,7 @@
3333
"mocha": "^7.2.0",
3434
"mocha-phantomjs-core": "^2.1.2",
3535
"phantomjs-prebuilt": "^2.1.16",
36-
"rollup": "^2.18.2",
36+
"rollup": "^2.19.0",
3737
"rollup-plugin-terser": "^6.1.0"
3838
}
3939
}

rollup.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ export default [
1616
name: 'param',
1717
esModule: false,
1818
plugins: [terser()]
19-
}
20-
]
21-
},
22-
{
23-
input: 'src/esm.js',
24-
output: [
19+
},
2520
{
2621
file: 'esm/jquery-param.es.js',
2722
format: 'es'

src/esm.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)