Skip to content

Commit 94ec204

Browse files
authored
Update dependencies (#110)
1 parent 2026e97 commit 94ec204

File tree

7 files changed

+340
-1100
lines changed

7 files changed

+340
-1100
lines changed

.babelrc

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
{
22
"presets": ["@babel/env"],
3-
"plugins": [
4-
["@babel/plugin-proposal-decorators", { "legacy": true }],
5-
"@babel/plugin-proposal-function-sent",
6-
"@babel/plugin-proposal-export-namespace-from",
7-
"@babel/plugin-proposal-numeric-separator",
8-
"@babel/plugin-proposal-throw-expressions",
9-
"@babel/plugin-syntax-dynamic-import",
10-
"@babel/plugin-syntax-import-meta",
11-
["@babel/plugin-proposal-class-properties", { "loose": false }],
12-
"@babel/plugin-proposal-json-strings",
13-
"@babel/plugin-transform-modules-umd"
14-
]
3+
"plugins": ["@babel/plugin-transform-modules-umd"]
154
}

.github/workflows/build.yml

+17-18
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@
44
name: Build
55

66
on:
7-
push:
8-
branches: [ master ]
9-
pull_request:
10-
branches: [ master ]
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
1111

1212
jobs:
13-
build:
13+
build:
14+
runs-on: ubuntu-latest
1415

15-
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [12.x, 14.x, 16.x]
1619

17-
strategy:
18-
matrix:
19-
node-version: [10.x, 12.x, 14.x]
20-
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v2
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: yarn
28-
- run: yarn build
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: yarn
27+
- run: yarn build

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ yarn.lock
3636

3737
# Config files
3838
.babelrc
39+
.github
40+
.whitesource
3941
renovate.json
4042
webpack.config.js

dist/extract-query-arg.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
factory(mod.exports);
1111
global.extractQueryArg = mod.exports;
1212
}
13-
})(this, function (_exports) {
13+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
1414
"use strict";
1515

1616
Object.defineProperty(_exports, "__esModule", {
1717
value: true
1818
});
19-
_exports.default = void 0;
19+
_exports["default"] = void 0;
2020

2121
var extractQueryArg = function extractQueryArg(queryArg) {
2222
var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
@@ -35,5 +35,5 @@
3535
};
3636

3737
var _default = extractQueryArg;
38-
_exports.default = _default;
38+
_exports["default"] = _default;
3939
});

dist/extract-query-arg.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@three11/extract-query-arg",
3-
"version": "0.4.0",
3+
"version": "1.0.0",
44
"description": "Extract query argument from url",
55
"main": "dist/extract-query-arg.min.js",
66
"scripts": {
@@ -43,17 +43,8 @@
4343
"devDependencies": {
4444
"@babel/cli": "7.14.3",
4545
"@babel/core": "7.14.3",
46-
"@babel/plugin-proposal-class-properties": "7.13.0",
47-
"@babel/plugin-proposal-decorators": "7.14.2",
48-
"@babel/plugin-proposal-export-namespace-from": "7.14.2",
49-
"@babel/plugin-proposal-function-sent": "7.12.13",
50-
"@babel/plugin-proposal-json-strings": "7.14.2",
51-
"@babel/plugin-proposal-numeric-separator": "7.14.2",
52-
"@babel/plugin-proposal-throw-expressions": "7.12.13",
53-
"@babel/plugin-syntax-dynamic-import": "7.8.3",
54-
"@babel/plugin-syntax-import-meta": "7.10.4",
46+
"@babel/plugin-transform-modules-umd": "7.14.0",
5547
"@babel/preset-env": "7.14.2",
56-
"babel-loader": "8.2.2",
5748
"babel-minify": "0.5.1"
5849
}
5950
}

0 commit comments

Comments
 (0)