deparam to a npm package
This commit is contained in:
17
package-lock.json
generated
17
package-lock.json
generated
@@ -12,6 +12,7 @@
|
||||
"@web/dev-server-rollup": "0.3.2",
|
||||
"canvg": "3.0.7",
|
||||
"core-js": "3.9.1",
|
||||
"deparam": "^1.0.5",
|
||||
"elix": "^15.0.0",
|
||||
"jspdf": "2.3.1",
|
||||
"pathseg": "1.2.0",
|
||||
@@ -47,7 +48,6 @@
|
||||
"cypress-axe": "0.12.2",
|
||||
"cypress-multi-reporters": "1.4.0",
|
||||
"cypress-plugin-snapshots": "1.4.4",
|
||||
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
|
||||
"eslint": "^7.22.0",
|
||||
"eslint-config-standard": "16.0.2",
|
||||
"eslint-plugin-array-func": "3.1.7",
|
||||
@@ -9184,11 +9184,10 @@
|
||||
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
|
||||
},
|
||||
"node_modules/deparam": {
|
||||
"resolved": "git+ssh://git@github.com/brettz9/deparam.git#3ae917fb3550640237b4c8ae36cd455ef7cc15d5",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/deparam/-/deparam-1.0.5.tgz",
|
||||
"integrity": "sha1-dAEbur0mtA+GDD48ws1hvtTrQ/I=",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/depd": {
|
||||
"version": "1.1.2",
|
||||
@@ -31766,9 +31765,9 @@
|
||||
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
|
||||
},
|
||||
"deparam": {
|
||||
"version": "git+ssh://git@github.com/brettz9/deparam.git#3ae917fb3550640237b4c8ae36cd455ef7cc15d5",
|
||||
"dev": true,
|
||||
"from": "deparam@git+https://github.com/brettz9/deparam.git#updates"
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/deparam/-/deparam-1.0.5.tgz",
|
||||
"integrity": "sha1-dAEbur0mtA+GDD48ws1hvtTrQ/I="
|
||||
},
|
||||
"depd": {
|
||||
"version": "1.1.2",
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
"@web/dev-server-rollup": "0.3.2",
|
||||
"canvg": "3.0.7",
|
||||
"core-js": "3.9.1",
|
||||
"deparam": "^1.0.5",
|
||||
"elix": "^15.0.0",
|
||||
"jspdf": "2.3.1",
|
||||
"pathseg": "1.2.0",
|
||||
@@ -145,7 +146,6 @@
|
||||
"cypress-axe": "0.12.2",
|
||||
"cypress-multi-reporters": "1.4.0",
|
||||
"cypress-plugin-snapshots": "1.4.4",
|
||||
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
|
||||
"eslint": "^7.22.0",
|
||||
"eslint-config-standard": "16.0.2",
|
||||
"eslint-plugin-array-func": "3.1.7",
|
||||
|
||||
@@ -237,7 +237,7 @@ export default class ConfigObj {
|
||||
const {search, searchParams} = new URL(location);
|
||||
|
||||
if (search) {
|
||||
this.urldata = deparam(searchParams.toString(), true);
|
||||
this.urldata = deparam(searchParams.toString());
|
||||
|
||||
['initStroke', 'initFill'].forEach((prop) => {
|
||||
if (searchParams.has(`${prop}[color]`)) {
|
||||
|
||||
Reference in New Issue
Block a user