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