Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
af12f068aa | |||
b5d2be3ab8 | |||
6fdd61b230 | |||
cdcf082ee0 | |||
52b8a3f0d1 | |||
9213e7905f | |||
56fb434f7d | |||
b147de4713 | |||
6a43243a3b | |||
6be0f9680b | |||
57728989b7 | |||
9e92b8cff4 | |||
3bd650dc2c | |||
71cecfdc9a | |||
d3bdbf6260 | |||
402934c944 |
423
package-lock.json
generated
423
package-lock.json
generated
@ -1,25 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartexpect",
|
"name": "@pushrocks/smartexpect",
|
||||||
"version": "1.0.5",
|
"version": "1.0.13",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartexpect",
|
"name": "@pushrocks/smartexpect",
|
||||||
"version": "1.0.5",
|
"version": "1.0.13",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"chai": "^4.3.4",
|
|
||||||
"fast-deep-equal": "^3.1.3"
|
"fast-deep-equal": "^3.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@gitzone/tsbundle": "^1.0.89",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.44",
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"@pushrocks/tapbundle": "^4.0.0",
|
||||||
"@types/node": "^14.11.2",
|
"@types/node": "^17.0.14",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
}
|
}
|
||||||
@ -100,9 +99,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/core": {
|
"node_modules/@babel/core": {
|
||||||
"version": "7.16.10",
|
"version": "7.16.12",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.16.10.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.16.12.tgz",
|
||||||
"integrity": "sha512-pbiIdZbCiMx/MM6toR+OfXarYix3uz0oVsnNtfdAGTcCTu3w/JGF8JhirevXLBJUu0WguSZI12qpKnx7EeMyLA==",
|
"integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -111,7 +110,7 @@
|
|||||||
"@babel/helper-compilation-targets": "^7.16.7",
|
"@babel/helper-compilation-targets": "^7.16.7",
|
||||||
"@babel/helper-module-transforms": "^7.16.7",
|
"@babel/helper-module-transforms": "^7.16.7",
|
||||||
"@babel/helpers": "^7.16.7",
|
"@babel/helpers": "^7.16.7",
|
||||||
"@babel/parser": "^7.16.10",
|
"@babel/parser": "^7.16.12",
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.16.10",
|
"@babel/traverse": "^7.16.10",
|
||||||
"@babel/types": "^7.16.8",
|
"@babel/types": "^7.16.8",
|
||||||
@ -538,9 +537,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
"version": "7.16.10",
|
"version": "7.16.12",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.16.10.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.16.12.tgz",
|
||||||
"integrity": "sha512-Sm/S9Or6nN8uiFsQU1yodyDW3MWXQhFeqzMPM+t8MJjM+pLsnFVxFZzkpXKvUXh+Gz9cbMoYYs484+Jw/NTEFQ==",
|
"integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -1905,49 +1904,82 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tsbundle": {
|
"node_modules/@gitzone/tsbundle": {
|
||||||
"version": "1.0.88",
|
"version": "1.0.89",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.88.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.89.tgz",
|
||||||
"integrity": "sha512-vBeW/ZntvXrW9YSWmQqk6KPh/xxzQc0skOjAQQeEPZG7mlM91wQ+B8R/htJGwDFcs1IyGrR51yfep7l2ntTpqg==",
|
"integrity": "sha512-L4W3umYKzqIx+/VQXVSCtEydWPEV3GxHpt0g+dpG6k8HobpLCOZi/56zbBP5vuazak7dq15hPwJ6vP1LQPZeuA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.15.0",
|
"@babel/core": "^7.16.12",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-decorators": "^7.14.5",
|
"@babel/plugin-proposal-decorators": "^7.16.7",
|
||||||
"@babel/plugin-transform-runtime": "^7.15.0",
|
"@babel/plugin-transform-runtime": "^7.16.10",
|
||||||
"@babel/preset-env": "^7.15.0",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.15.3",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartfile": "^8.0.10",
|
"@pushrocks/smartfile": "^9.0.5",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartparcel": "^1.0.9",
|
"@pushrocks/smartparcel": "^1.0.9",
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"@pushrocks/smartspawn": "^2.0.9",
|
"@pushrocks/smartspawn": "^2.0.9",
|
||||||
"@rollup/plugin-commonjs": "^20.0.0",
|
"@rollup/plugin-commonjs": "^21.0.1",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.4",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
"@rollup/plugin-typescript": "^8.2.5",
|
"@rollup/plugin-typescript": "^8.3.0",
|
||||||
"@types/html-minifier": "^4.0.1",
|
"@types/html-minifier": "^4.0.2",
|
||||||
"@types/node": "^16.7.4",
|
"@types/node": "^17.0.10",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"rollup": "^2.56.3",
|
"rollup": "^2.66.0",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"typescript": "^4.4.2"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsbundle": "cli.js"
|
"tsbundle": "cli.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tsbundle/node_modules/@types/node": {
|
"node_modules/@gitzone/tsbundle/node_modules/@pushrocks/lik": {
|
||||||
"version": "16.11.21",
|
"version": "5.0.4",
|
||||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-16.11.21.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2flik/-/lik-5.0.4.tgz",
|
||||||
"integrity": "sha512-Pf8M1XD9i1ksZEcCP8vuSNwooJ/bZapNmIzpmsMaL+jMI+8mEYU3PKvs+xDNuQcJWF/x24WzY4qxLtB0zNow9A==",
|
"integrity": "sha512-Ydr1qwu/CYQiG9ZymhhNbyUQKIp6Yo6T9wsxR/D3iDs/h4vabkaFzcE47yNz+quMX/4kQaGthb77xxiXTnsVdQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartmatch": "^1.0.7",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"@pushrocks/smartrx": "^2.0.25",
|
||||||
|
"@pushrocks/smarttime": "^3.0.43",
|
||||||
|
"@types/minimatch": "^3.0.5",
|
||||||
|
"symbol-tree": "^3.2.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@gitzone/tsbundle/node_modules/@pushrocks/smartfile": {
|
||||||
|
"version": "9.0.5",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-9.0.5.tgz",
|
||||||
|
"integrity": "sha512-u7i2GmKPzjZZUNhl7y/vM8gubU23DIOSpGxxjN3T49fGOzc6LsjTenk7clVxpdR27eRzCsvRTy3rOxcyMLGOvQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@pushrocks/lik": "^5.0.0",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartfile-interfaces": "^1.0.7",
|
||||||
|
"@pushrocks/smarthash": "^2.1.10",
|
||||||
|
"@pushrocks/smartjson": "^4.0.6",
|
||||||
|
"@pushrocks/smartmime": "^1.0.5",
|
||||||
|
"@pushrocks/smartpath": "^4.0.3",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"@pushrocks/smartrequest": "^1.1.52",
|
||||||
|
"@types/fs-extra": "^9.0.13",
|
||||||
|
"@types/glob": "^7.2.0",
|
||||||
|
"@types/js-yaml": "^4.0.5",
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
|
"glob": "^7.2.0",
|
||||||
|
"js-yaml": "^4.1.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tsrun": {
|
"node_modules/@gitzone/tsrun": {
|
||||||
"version": "1.2.18",
|
"version": "1.2.18",
|
||||||
@ -1989,6 +2021,21 @@
|
|||||||
"tstest": "cli.js"
|
"tstest": "cli.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@gitzone/tstest/node_modules/@pushrocks/tapbundle": {
|
||||||
|
"version": "3.2.15",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-3.2.15.tgz",
|
||||||
|
"integrity": "sha512-LE1VEU5qL0E7t1PZCxbHcuHa0Jp6PghLBM1Mj7gFKq2H1QwFcxkuaYmT8SPU0FH2iMxd72fDhG+qXA0WmTnGCA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@open-wc/testing-helpers": "^2.0.2",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartenv": "^4.0.16",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"@pushrocks/smarttime": "^3.0.43",
|
||||||
|
"smartchai": "^2.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@iarna/toml": {
|
"node_modules/@iarna/toml": {
|
||||||
"version": "2.2.5",
|
"version": "2.2.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/@iarna%2ftoml/-/toml-2.2.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/@iarna%2ftoml/-/toml-2.2.5.tgz",
|
||||||
@ -2250,6 +2297,13 @@
|
|||||||
"@types/node": "^14.11.2"
|
"@types/node": "^14.11.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@pushrocks/smartenv/node_modules/@types/node": {
|
||||||
|
"version": "14.18.10",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.18.10.tgz",
|
||||||
|
"integrity": "sha512-6iihJ/Pp5fsFJ/aEDGyvT4pHGmCpq7ToQ/yf4bl5SbVAvwpspYJ+v3jO7n8UyjhQVHTy+KNszOozDdv+O6sovQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/@pushrocks/smarterror": {
|
"node_modules/@pushrocks/smarterror": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarterror/-/smarterror-2.0.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarterror/-/smarterror-2.0.1.tgz",
|
||||||
@ -2272,6 +2326,18 @@
|
|||||||
"@pushrocks/smartdelay": "^2.0.3"
|
"@pushrocks/smartdelay": "^2.0.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@pushrocks/smartexpect": {
|
||||||
|
"version": "1.0.7",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpect/-/smartexpect-1.0.7.tgz",
|
||||||
|
"integrity": "sha512-xoYMslPRhOsA2/SPCY7gmRfzT2cL0D5a+wFPB0dVBLJ9jCoyYkRm5sZo02ty+YNqXUVN2zKxY+BZk9KM4HaHyw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"fast-deep-equal": "^3.1.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@pushrocks/smartexpress": {
|
"node_modules/@pushrocks/smartexpress": {
|
||||||
"version": "3.0.108",
|
"version": "3.0.108",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.108.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.108.tgz",
|
||||||
@ -2587,15 +2653,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@pushrocks/smartrx": {
|
"node_modules/@pushrocks/smartrx": {
|
||||||
"version": "2.0.19",
|
"version": "2.0.25",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.19.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.25.tgz",
|
||||||
"integrity": "sha512-xKuN2qKpewq4LLwQfGRv6+hG+gFjzoKB6uij3M0NpaPcj/BbO3afnbOv+sczGThf/goMxTTKdQRPXYOp8Rt+Cw==",
|
"integrity": "sha512-fryDJvjRdVYsH30xqR+bicp5poTdz7KYZ7Kqm+Yth0Qtk0x7NazENaTJATnWqGSiCbk9GrufVUTKWsT+uIT6kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/lik": "^4.0.17",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"@pushrocks/smartpromise": "^3.0.6",
|
"rxjs": "^7.5.2"
|
||||||
"rxjs": "^6.6.3"
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pushrocks/smartrx/node_modules/rxjs": {
|
||||||
|
"version": "7.5.2",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/rxjs/-/rxjs-7.5.2.tgz",
|
||||||
|
"integrity": "sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@pushrocks/smartshell": {
|
"node_modules/@pushrocks/smartshell": {
|
||||||
@ -2814,18 +2889,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@pushrocks/tapbundle": {
|
"node_modules/@pushrocks/tapbundle": {
|
||||||
"version": "3.2.15",
|
"version": "4.0.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-3.2.15.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-4.0.0.tgz",
|
||||||
"integrity": "sha512-LE1VEU5qL0E7t1PZCxbHcuHa0Jp6PghLBM1Mj7gFKq2H1QwFcxkuaYmT8SPU0FH2iMxd72fDhG+qXA0WmTnGCA==",
|
"integrity": "sha512-BPq1YyC1+oikfaoyJB2v5/riZzk+6VoPLtTkUjtEKCwlVK+GNp1Gixk5hmtMtInyS1aIriTG7bCMFBB4P2nMhQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@open-wc/testing-helpers": "^2.0.2",
|
"@open-wc/testing-helpers": "^2.0.2",
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartenv": "^4.0.16",
|
"@pushrocks/smartenv": "^4.0.16",
|
||||||
|
"@pushrocks/smartexpect": "^1.0.7",
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"@pushrocks/smarttime": "^3.0.43",
|
"@pushrocks/smarttime": "^3.0.43"
|
||||||
"smartchai": "^2.0.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@pushrocks/webrequest": {
|
"node_modules/@pushrocks/webrequest": {
|
||||||
@ -2852,9 +2927,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/plugin-commonjs": {
|
"node_modules/@rollup/plugin-commonjs": {
|
||||||
"version": "20.0.0",
|
"version": "21.0.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-commonjs/-/plugin-commonjs-20.0.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-commonjs/-/plugin-commonjs-21.0.1.tgz",
|
||||||
"integrity": "sha512-5K0g5W2Ol8hAcTHqcTBHiA7M58tfmYi1o9KxeJuuRNpGaTa5iLjcyemBitCBcKXaHamOBBEH2dGom6v6Unmqjg==",
|
"integrity": "sha512-EA+g22lbNJ8p5kuZJUYyhhDK7WgJckW5g4pNN7n4mAFUM96VuwUnNT3xr2Db2iCZPI1pJPbGyfT5mS9T1dHfMg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -3280,9 +3355,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "14.18.9",
|
"version": "17.0.14",
|
||||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.18.9.tgz",
|
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.14.tgz",
|
||||||
"integrity": "sha512-j11XSuRuAlft6vLDEX4RvhqC0KxNxx6QIyMXNb0vHHSNPXTPeiy3algESWmOOIzEtiEL0qiowPU3ewW9hHVa7Q==",
|
"integrity": "sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
@ -3795,6 +3870,7 @@
|
|||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/assertion-error/-/assertion-error-1.1.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/assertion-error/-/assertion-error-1.1.0.tgz",
|
||||||
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
|
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
@ -4650,15 +4726,17 @@
|
|||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0"
|
||||||
},
|
},
|
||||||
"node_modules/chai": {
|
"node_modules/chai": {
|
||||||
"version": "4.3.4",
|
"version": "4.3.6",
|
||||||
"resolved": "https://verdaccio.lossless.one/chai/-/chai-4.3.4.tgz",
|
"resolved": "https://verdaccio.lossless.one/chai/-/chai-4.3.6.tgz",
|
||||||
"integrity": "sha512-yS5H68VYOCtN1cjfwumDSuzn/9c+yza4f3reKXlE5rUg7SFcCEy90gJvydNgOYtblyf4Zi6jIWRnXOgErta0KA==",
|
"integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"assertion-error": "^1.1.0",
|
"assertion-error": "^1.1.0",
|
||||||
"check-error": "^1.0.2",
|
"check-error": "^1.0.2",
|
||||||
"deep-eql": "^3.0.1",
|
"deep-eql": "^3.0.1",
|
||||||
"get-func-name": "^2.0.0",
|
"get-func-name": "^2.0.0",
|
||||||
|
"loupe": "^2.3.1",
|
||||||
"pathval": "^1.1.1",
|
"pathval": "^1.1.1",
|
||||||
"type-detect": "^4.0.5"
|
"type-detect": "^4.0.5"
|
||||||
},
|
},
|
||||||
@ -4708,6 +4786,7 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://verdaccio.lossless.one/check-error/-/check-error-1.0.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/check-error/-/check-error-1.0.2.tgz",
|
||||||
"integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
|
"integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
@ -6012,6 +6091,7 @@
|
|||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/deep-eql/-/deep-eql-3.0.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/deep-eql/-/deep-eql-3.0.1.tgz",
|
||||||
"integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==",
|
"integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-detect": "^4.0.0"
|
"type-detect": "^4.0.0"
|
||||||
@ -7425,6 +7505,7 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/get-func-name/-/get-func-name-2.0.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/get-func-name/-/get-func-name-2.0.0.tgz",
|
||||||
"integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
|
"integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
@ -9474,6 +9555,16 @@
|
|||||||
"loose-envify": "cli.js"
|
"loose-envify": "cli.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/loupe": {
|
||||||
|
"version": "2.3.1",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/loupe/-/loupe-2.3.1.tgz",
|
||||||
|
"integrity": "sha512-EN1D3jyVmaX4tnajVlfbREU4axL647hLec1h/PXAb8CPDMJiYitcWF2UeLVNttRqaIqQs4x+mRvXf+d+TlDrCA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"get-func-name": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/lower-case": {
|
"node_modules/lower-case": {
|
||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://verdaccio.lossless.one/lower-case/-/lower-case-1.1.4.tgz",
|
"resolved": "https://verdaccio.lossless.one/lower-case/-/lower-case-1.1.4.tgz",
|
||||||
@ -11043,6 +11134,7 @@
|
|||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/pathval/-/pathval-1.1.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/pathval/-/pathval-1.1.1.tgz",
|
||||||
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
|
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
@ -12801,9 +12893,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup": {
|
"node_modules/rollup": {
|
||||||
"version": "2.64.0",
|
"version": "2.66.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/rollup/-/rollup-2.64.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/rollup/-/rollup-2.66.1.tgz",
|
||||||
"integrity": "sha512-+c+lbw1lexBKSMb1yxGDVfJ+vchJH3qLbmavR+awDinTDA2C5Ug9u7lkOzj62SCu0PKUExsW36tpgW7Fmpn3yQ==",
|
"integrity": "sha512-crSgLhSkLMnKr4s9iZ/1qJCplgAgrRY+igWv8KhG/AjKOJ0YX/WpmANyn8oxrw+zenF3BXWDLa7Xl/QZISH+7w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -14617,8 +14709,7 @@
|
|||||||
"resolved": "https://verdaccio.lossless.one/tslib/-/tslib-2.3.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/tslib/-/tslib-2.3.1.tgz",
|
||||||
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==",
|
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "0BSD",
|
"license": "0BSD"
|
||||||
"peer": true
|
|
||||||
},
|
},
|
||||||
"node_modules/tslint": {
|
"node_modules/tslint": {
|
||||||
"version": "6.1.3",
|
"version": "6.1.3",
|
||||||
@ -14794,6 +14885,7 @@
|
|||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
"resolved": "https://verdaccio.lossless.one/type-detect/-/type-detect-4.0.8.tgz",
|
"resolved": "https://verdaccio.lossless.one/type-detect/-/type-detect-4.0.8.tgz",
|
||||||
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
|
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
@ -15783,9 +15875,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@babel/core": {
|
"@babel/core": {
|
||||||
"version": "7.16.10",
|
"version": "7.16.12",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.16.10.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.16.12.tgz",
|
||||||
"integrity": "sha512-pbiIdZbCiMx/MM6toR+OfXarYix3uz0oVsnNtfdAGTcCTu3w/JGF8JhirevXLBJUu0WguSZI12qpKnx7EeMyLA==",
|
"integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.16.7",
|
"@babel/code-frame": "^7.16.7",
|
||||||
@ -15793,7 +15885,7 @@
|
|||||||
"@babel/helper-compilation-targets": "^7.16.7",
|
"@babel/helper-compilation-targets": "^7.16.7",
|
||||||
"@babel/helper-module-transforms": "^7.16.7",
|
"@babel/helper-module-transforms": "^7.16.7",
|
||||||
"@babel/helpers": "^7.16.7",
|
"@babel/helpers": "^7.16.7",
|
||||||
"@babel/parser": "^7.16.10",
|
"@babel/parser": "^7.16.12",
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.16.10",
|
"@babel/traverse": "^7.16.10",
|
||||||
"@babel/types": "^7.16.8",
|
"@babel/types": "^7.16.8",
|
||||||
@ -16092,9 +16184,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/parser": {
|
"@babel/parser": {
|
||||||
"version": "7.16.10",
|
"version": "7.16.12",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.16.10.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.16.12.tgz",
|
||||||
"integrity": "sha512-Sm/S9Or6nN8uiFsQU1yodyDW3MWXQhFeqzMPM+t8MJjM+pLsnFVxFZzkpXKvUXh+Gz9cbMoYYs484+Jw/NTEFQ==",
|
"integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
|
||||||
@ -16962,44 +17054,76 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsbundle": {
|
"@gitzone/tsbundle": {
|
||||||
"version": "1.0.88",
|
"version": "1.0.89",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.88.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.89.tgz",
|
||||||
"integrity": "sha512-vBeW/ZntvXrW9YSWmQqk6KPh/xxzQc0skOjAQQeEPZG7mlM91wQ+B8R/htJGwDFcs1IyGrR51yfep7l2ntTpqg==",
|
"integrity": "sha512-L4W3umYKzqIx+/VQXVSCtEydWPEV3GxHpt0g+dpG6k8HobpLCOZi/56zbBP5vuazak7dq15hPwJ6vP1LQPZeuA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/core": "^7.15.0",
|
"@babel/core": "^7.16.12",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-decorators": "^7.14.5",
|
"@babel/plugin-proposal-decorators": "^7.16.7",
|
||||||
"@babel/plugin-transform-runtime": "^7.15.0",
|
"@babel/plugin-transform-runtime": "^7.16.10",
|
||||||
"@babel/preset-env": "^7.15.0",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.15.3",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartfile": "^8.0.10",
|
"@pushrocks/smartfile": "^9.0.5",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartparcel": "^1.0.9",
|
"@pushrocks/smartparcel": "^1.0.9",
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"@pushrocks/smartspawn": "^2.0.9",
|
"@pushrocks/smartspawn": "^2.0.9",
|
||||||
"@rollup/plugin-commonjs": "^20.0.0",
|
"@rollup/plugin-commonjs": "^21.0.1",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.4",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
"@rollup/plugin-typescript": "^8.2.5",
|
"@rollup/plugin-typescript": "^8.3.0",
|
||||||
"@types/html-minifier": "^4.0.1",
|
"@types/html-minifier": "^4.0.2",
|
||||||
"@types/node": "^16.7.4",
|
"@types/node": "^17.0.10",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"rollup": "^2.56.3",
|
"rollup": "^2.66.0",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"typescript": "^4.4.2"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": {
|
"@pushrocks/lik": {
|
||||||
"version": "16.11.21",
|
"version": "5.0.4",
|
||||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-16.11.21.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2flik/-/lik-5.0.4.tgz",
|
||||||
"integrity": "sha512-Pf8M1XD9i1ksZEcCP8vuSNwooJ/bZapNmIzpmsMaL+jMI+8mEYU3PKvs+xDNuQcJWF/x24WzY4qxLtB0zNow9A==",
|
"integrity": "sha512-Ydr1qwu/CYQiG9ZymhhNbyUQKIp6Yo6T9wsxR/D3iDs/h4vabkaFzcE47yNz+quMX/4kQaGthb77xxiXTnsVdQ==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartmatch": "^1.0.7",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"@pushrocks/smartrx": "^2.0.25",
|
||||||
|
"@pushrocks/smarttime": "^3.0.43",
|
||||||
|
"@types/minimatch": "^3.0.5",
|
||||||
|
"symbol-tree": "^3.2.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/smartfile": {
|
||||||
|
"version": "9.0.5",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-9.0.5.tgz",
|
||||||
|
"integrity": "sha512-u7i2GmKPzjZZUNhl7y/vM8gubU23DIOSpGxxjN3T49fGOzc6LsjTenk7clVxpdR27eRzCsvRTy3rOxcyMLGOvQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/lik": "^5.0.0",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartfile-interfaces": "^1.0.7",
|
||||||
|
"@pushrocks/smarthash": "^2.1.10",
|
||||||
|
"@pushrocks/smartjson": "^4.0.6",
|
||||||
|
"@pushrocks/smartmime": "^1.0.5",
|
||||||
|
"@pushrocks/smartpath": "^4.0.3",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"@pushrocks/smartrequest": "^1.1.52",
|
||||||
|
"@types/fs-extra": "^9.0.13",
|
||||||
|
"@types/glob": "^7.2.0",
|
||||||
|
"@types/js-yaml": "^4.0.5",
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
|
"glob": "^7.2.0",
|
||||||
|
"js-yaml": "^4.1.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -17033,6 +17157,22 @@
|
|||||||
"@pushrocks/tapbundle": "^3.2.14",
|
"@pushrocks/tapbundle": "^3.2.14",
|
||||||
"@types/figures": "^3.0.1",
|
"@types/figures": "^3.0.1",
|
||||||
"figures": "^3.0.0"
|
"figures": "^3.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@pushrocks/tapbundle": {
|
||||||
|
"version": "3.2.15",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-3.2.15.tgz",
|
||||||
|
"integrity": "sha512-LE1VEU5qL0E7t1PZCxbHcuHa0Jp6PghLBM1Mj7gFKq2H1QwFcxkuaYmT8SPU0FH2iMxd72fDhG+qXA0WmTnGCA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@open-wc/testing-helpers": "^2.0.2",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartenv": "^4.0.16",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"@pushrocks/smarttime": "^3.0.43",
|
||||||
|
"smartchai": "^2.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@iarna/toml": {
|
"@iarna/toml": {
|
||||||
@ -17253,6 +17393,14 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"@pushrocks/smartpromise": "^3.0.6",
|
"@pushrocks/smartpromise": "^3.0.6",
|
||||||
"@types/node": "^14.11.2"
|
"@types/node": "^14.11.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": {
|
||||||
|
"version": "14.18.10",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.18.10.tgz",
|
||||||
|
"integrity": "sha512-6iihJ/Pp5fsFJ/aEDGyvT4pHGmCpq7ToQ/yf4bl5SbVAvwpspYJ+v3jO7n8UyjhQVHTy+KNszOozDdv+O6sovQ==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/smarterror": {
|
"@pushrocks/smarterror": {
|
||||||
@ -17275,6 +17423,17 @@
|
|||||||
"@pushrocks/smartdelay": "^2.0.3"
|
"@pushrocks/smartdelay": "^2.0.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@pushrocks/smartexpect": {
|
||||||
|
"version": "1.0.7",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpect/-/smartexpect-1.0.7.tgz",
|
||||||
|
"integrity": "sha512-xoYMslPRhOsA2/SPCY7gmRfzT2cL0D5a+wFPB0dVBLJ9jCoyYkRm5sZo02ty+YNqXUVN2zKxY+BZk9KM4HaHyw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
"fast-deep-equal": "^3.1.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@pushrocks/smartexpress": {
|
"@pushrocks/smartexpress": {
|
||||||
"version": "3.0.108",
|
"version": "3.0.108",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.108.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.108.tgz",
|
||||||
@ -17571,14 +17730,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/smartrx": {
|
"@pushrocks/smartrx": {
|
||||||
"version": "2.0.19",
|
"version": "2.0.25",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.19.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.25.tgz",
|
||||||
"integrity": "sha512-xKuN2qKpewq4LLwQfGRv6+hG+gFjzoKB6uij3M0NpaPcj/BbO3afnbOv+sczGThf/goMxTTKdQRPXYOp8Rt+Cw==",
|
"integrity": "sha512-fryDJvjRdVYsH30xqR+bicp5poTdz7KYZ7Kqm+Yth0Qtk0x7NazENaTJATnWqGSiCbk9GrufVUTKWsT+uIT6kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@pushrocks/lik": "^4.0.17",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"@pushrocks/smartpromise": "^3.0.6",
|
"rxjs": "^7.5.2"
|
||||||
"rxjs": "^6.6.3"
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"rxjs": {
|
||||||
|
"version": "7.5.2",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/rxjs/-/rxjs-7.5.2.tgz",
|
||||||
|
"integrity": "sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^2.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/smartshell": {
|
"@pushrocks/smartshell": {
|
||||||
@ -17777,17 +17946,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/tapbundle": {
|
"@pushrocks/tapbundle": {
|
||||||
"version": "3.2.15",
|
"version": "4.0.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-3.2.15.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-4.0.0.tgz",
|
||||||
"integrity": "sha512-LE1VEU5qL0E7t1PZCxbHcuHa0Jp6PghLBM1Mj7gFKq2H1QwFcxkuaYmT8SPU0FH2iMxd72fDhG+qXA0WmTnGCA==",
|
"integrity": "sha512-BPq1YyC1+oikfaoyJB2v5/riZzk+6VoPLtTkUjtEKCwlVK+GNp1Gixk5hmtMtInyS1aIriTG7bCMFBB4P2nMhQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@open-wc/testing-helpers": "^2.0.2",
|
"@open-wc/testing-helpers": "^2.0.2",
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartenv": "^4.0.16",
|
"@pushrocks/smartenv": "^4.0.16",
|
||||||
|
"@pushrocks/smartexpect": "^1.0.7",
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"@pushrocks/smarttime": "^3.0.43",
|
"@pushrocks/smarttime": "^3.0.43"
|
||||||
"smartchai": "^2.0.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/webrequest": {
|
"@pushrocks/webrequest": {
|
||||||
@ -17812,9 +17981,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@rollup/plugin-commonjs": {
|
"@rollup/plugin-commonjs": {
|
||||||
"version": "20.0.0",
|
"version": "21.0.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-commonjs/-/plugin-commonjs-20.0.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-commonjs/-/plugin-commonjs-21.0.1.tgz",
|
||||||
"integrity": "sha512-5K0g5W2Ol8hAcTHqcTBHiA7M58tfmYi1o9KxeJuuRNpGaTa5iLjcyemBitCBcKXaHamOBBEH2dGom6v6Unmqjg==",
|
"integrity": "sha512-EA+g22lbNJ8p5kuZJUYyhhDK7WgJckW5g4pNN7n4mAFUM96VuwUnNT3xr2Db2iCZPI1pJPbGyfT5mS9T1dHfMg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@rollup/pluginutils": "^3.1.0",
|
"@rollup/pluginutils": "^3.1.0",
|
||||||
@ -18158,9 +18327,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "14.18.9",
|
"version": "17.0.14",
|
||||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.18.9.tgz",
|
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-17.0.14.tgz",
|
||||||
"integrity": "sha512-j11XSuRuAlft6vLDEX4RvhqC0KxNxx6QIyMXNb0vHHSNPXTPeiy3algESWmOOIzEtiEL0qiowPU3ewW9hHVa7Q==",
|
"integrity": "sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/parcel-bundler": {
|
"@types/parcel-bundler": {
|
||||||
@ -18562,7 +18731,8 @@
|
|||||||
"assertion-error": {
|
"assertion-error": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/assertion-error/-/assertion-error-1.1.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/assertion-error/-/assertion-error-1.1.0.tgz",
|
||||||
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw=="
|
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"assign-symbols": {
|
"assign-symbols": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
@ -19207,14 +19377,16 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"chai": {
|
"chai": {
|
||||||
"version": "4.3.4",
|
"version": "4.3.6",
|
||||||
"resolved": "https://verdaccio.lossless.one/chai/-/chai-4.3.4.tgz",
|
"resolved": "https://verdaccio.lossless.one/chai/-/chai-4.3.6.tgz",
|
||||||
"integrity": "sha512-yS5H68VYOCtN1cjfwumDSuzn/9c+yza4f3reKXlE5rUg7SFcCEy90gJvydNgOYtblyf4Zi6jIWRnXOgErta0KA==",
|
"integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"assertion-error": "^1.1.0",
|
"assertion-error": "^1.1.0",
|
||||||
"check-error": "^1.0.2",
|
"check-error": "^1.0.2",
|
||||||
"deep-eql": "^3.0.1",
|
"deep-eql": "^3.0.1",
|
||||||
"get-func-name": "^2.0.0",
|
"get-func-name": "^2.0.0",
|
||||||
|
"loupe": "^2.3.1",
|
||||||
"pathval": "^1.1.1",
|
"pathval": "^1.1.1",
|
||||||
"type-detect": "^4.0.5"
|
"type-detect": "^4.0.5"
|
||||||
}
|
}
|
||||||
@ -19249,7 +19421,8 @@
|
|||||||
"check-error": {
|
"check-error": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://verdaccio.lossless.one/check-error/-/check-error-1.0.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/check-error/-/check-error-1.0.2.tgz",
|
||||||
"integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII="
|
"integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"chokidar": {
|
"chokidar": {
|
||||||
"version": "2.1.8",
|
"version": "2.1.8",
|
||||||
@ -20237,6 +20410,7 @@
|
|||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/deep-eql/-/deep-eql-3.0.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/deep-eql/-/deep-eql-3.0.1.tgz",
|
||||||
"integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==",
|
"integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"type-detect": "^4.0.0"
|
"type-detect": "^4.0.0"
|
||||||
}
|
}
|
||||||
@ -21283,7 +21457,8 @@
|
|||||||
"get-func-name": {
|
"get-func-name": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/get-func-name/-/get-func-name-2.0.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/get-func-name/-/get-func-name-2.0.0.tgz",
|
||||||
"integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE="
|
"integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"get-intrinsic": {
|
"get-intrinsic": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
@ -22752,6 +22927,15 @@
|
|||||||
"js-tokens": "^3.0.0 || ^4.0.0"
|
"js-tokens": "^3.0.0 || ^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"loupe": {
|
||||||
|
"version": "2.3.1",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/loupe/-/loupe-2.3.1.tgz",
|
||||||
|
"integrity": "sha512-EN1D3jyVmaX4tnajVlfbREU4axL647hLec1h/PXAb8CPDMJiYitcWF2UeLVNttRqaIqQs4x+mRvXf+d+TlDrCA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"get-func-name": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"lower-case": {
|
"lower-case": {
|
||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://verdaccio.lossless.one/lower-case/-/lower-case-1.1.4.tgz",
|
"resolved": "https://verdaccio.lossless.one/lower-case/-/lower-case-1.1.4.tgz",
|
||||||
@ -23926,7 +24110,8 @@
|
|||||||
"pathval": {
|
"pathval": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/pathval/-/pathval-1.1.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/pathval/-/pathval-1.1.1.tgz",
|
||||||
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ=="
|
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"pbkdf2": {
|
"pbkdf2": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
@ -25221,9 +25406,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rollup": {
|
"rollup": {
|
||||||
"version": "2.64.0",
|
"version": "2.66.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/rollup/-/rollup-2.64.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/rollup/-/rollup-2.66.1.tgz",
|
||||||
"integrity": "sha512-+c+lbw1lexBKSMb1yxGDVfJ+vchJH3qLbmavR+awDinTDA2C5Ug9u7lkOzj62SCu0PKUExsW36tpgW7Fmpn3yQ==",
|
"integrity": "sha512-crSgLhSkLMnKr4s9iZ/1qJCplgAgrRY+igWv8KhG/AjKOJ0YX/WpmANyn8oxrw+zenF3BXWDLa7Xl/QZISH+7w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fsevents": "~2.3.2"
|
"fsevents": "~2.3.2"
|
||||||
@ -26566,8 +26751,7 @@
|
|||||||
"version": "2.3.1",
|
"version": "2.3.1",
|
||||||
"resolved": "https://verdaccio.lossless.one/tslib/-/tslib-2.3.1.tgz",
|
"resolved": "https://verdaccio.lossless.one/tslib/-/tslib-2.3.1.tgz",
|
||||||
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==",
|
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"peer": true
|
|
||||||
},
|
},
|
||||||
"tslint": {
|
"tslint": {
|
||||||
"version": "6.1.3",
|
"version": "6.1.3",
|
||||||
@ -26691,7 +26875,8 @@
|
|||||||
"type-detect": {
|
"type-detect": {
|
||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
"resolved": "https://verdaccio.lossless.one/type-detect/-/type-detect-4.0.8.tgz",
|
"resolved": "https://verdaccio.lossless.one/type-detect/-/type-detect-4.0.8.tgz",
|
||||||
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g=="
|
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"type-fest": {
|
"type-fest": {
|
||||||
"version": "2.10.0",
|
"version": "2.10.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartexpect",
|
"name": "@pushrocks/smartexpect",
|
||||||
"version": "1.0.5",
|
"version": "1.0.13",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "manage expectations in code",
|
"description": "manage expectations in code",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -13,17 +13,16 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@gitzone/tsbundle": "^1.0.89",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.44",
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"@pushrocks/tapbundle": "^4.0.0",
|
||||||
"@types/node": "^14.11.2",
|
"@types/node": "^17.0.14",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
"chai": "^4.3.4",
|
|
||||||
"fast-deep-equal": "^3.1.3"
|
"fast-deep-equal": "^3.1.3"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
22
test/test.ts
22
test/test.ts
@ -22,4 +22,26 @@ tap.test('should check equality', async () => {
|
|||||||
smartexpect.expect('hithere').not.toEqual('hithere2');
|
smartexpect.expect('hithere').not.toEqual('hithere2');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
tap.test('should correctly state property presence', async () => {
|
||||||
|
const testObject = {
|
||||||
|
aprop: 'hello'
|
||||||
|
};
|
||||||
|
|
||||||
|
smartexpect.expect(testObject).toHaveProperty('aprop');
|
||||||
|
smartexpect.expect(testObject).not.toHaveProperty('aprop2');
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.test('should be greater than', async () => {
|
||||||
|
smartexpect.expect(4).toBeGreaterThan(3);
|
||||||
|
smartexpect.expect(4).toBeLessThan(5);
|
||||||
|
})
|
||||||
|
|
||||||
|
tap.test('should correctly determine toContain', async () => {
|
||||||
|
const hello = {
|
||||||
|
socool: 'yes'
|
||||||
|
};
|
||||||
|
const testArray = [hello];
|
||||||
|
smartexpect.expect(testArray).toContain(hello);
|
||||||
|
})
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
@ -5,6 +5,7 @@ export type TExecutionType = 'sync' | 'async';
|
|||||||
export class Assertion {
|
export class Assertion {
|
||||||
executionMode: TExecutionType;
|
executionMode: TExecutionType;
|
||||||
baseReference: any;
|
baseReference: any;
|
||||||
|
propertyDrillDown: string[] = [];
|
||||||
private notSetting = false;
|
private notSetting = false;
|
||||||
private timeoutSetting = 0;
|
private timeoutSetting = 0;
|
||||||
constructor(baseReferenceArg: any, executionModeArg: TExecutionType) {
|
constructor(baseReferenceArg: any, executionModeArg: TExecutionType) {
|
||||||
@ -12,6 +13,14 @@ export class Assertion {
|
|||||||
this.executionMode = executionModeArg;
|
this.executionMode = executionModeArg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private getObjectToTestReference() {
|
||||||
|
let returnObjectToTestReference = this.baseReference;
|
||||||
|
for (const property of this.propertyDrillDown) {
|
||||||
|
returnObjectToTestReference = returnObjectToTestReference[property];
|
||||||
|
}
|
||||||
|
return returnObjectToTestReference;
|
||||||
|
}
|
||||||
|
|
||||||
public get not() {
|
public get not() {
|
||||||
this.notSetting = true;
|
this.notSetting = true;
|
||||||
return this;
|
return this;
|
||||||
@ -29,7 +38,7 @@ export class Assertion {
|
|||||||
} else {
|
} else {
|
||||||
let isOk = false;
|
let isOk = false;
|
||||||
try {
|
try {
|
||||||
runDirectOrNegated(checkFunction())
|
runDirectOrNegated(checkFunction());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
isOk = true;
|
isOk = true;
|
||||||
}
|
}
|
||||||
@ -37,7 +46,7 @@ export class Assertion {
|
|||||||
throw new Error('Negated assertion is not ok!');
|
throw new Error('Negated assertion is not ok!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
if (this.executionMode === 'async') {
|
if (this.executionMode === 'async') {
|
||||||
const done = plugins.smartpromise.defer();
|
const done = plugins.smartpromise.defer();
|
||||||
@ -47,14 +56,14 @@ export class Assertion {
|
|||||||
if (this.timeoutSetting) {
|
if (this.timeoutSetting) {
|
||||||
plugins.smartdelay.delayFor(this.timeoutSetting).then(() => {
|
plugins.smartdelay.delayFor(this.timeoutSetting).then(() => {
|
||||||
if (done.status === 'pending') {
|
if (done.status === 'pending') {
|
||||||
done.reject(new Error(`${this.baseReference} timed out at ${this.timeoutSetting}!`))
|
done.reject(new Error(`${this.baseReference} timed out at ${this.timeoutSetting}!`));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.baseReference.then(promiseResultArg => {
|
this.baseReference.then((promiseResultArg) => {
|
||||||
this.baseReference = promiseResultArg;
|
this.baseReference = promiseResultArg;
|
||||||
done.resolve(runDirectOrNegated(checkFunction));
|
done.resolve(runDirectOrNegated(checkFunction));
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
return done.promise;
|
return done.promise;
|
||||||
} else {
|
} else {
|
||||||
@ -64,9 +73,10 @@ export class Assertion {
|
|||||||
|
|
||||||
public toBeTypeofString() {
|
public toBeTypeofString() {
|
||||||
return this.runCheck(() => {
|
return this.runCheck(() => {
|
||||||
if (typeof this.baseReference !== 'string') {
|
if (typeof this.getObjectToTestReference() !== 'string') {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Assertion failed: ${this.baseReference} is not of type string, but typeof ${typeof this.baseReference}`
|
`Assertion failed: ${this.baseReference} with drill down ${this.propertyDrillDown} is not of type string, but typeof ${typeof this
|
||||||
|
.baseReference}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -74,9 +84,10 @@ export class Assertion {
|
|||||||
|
|
||||||
public toBeTypeofNumber() {
|
public toBeTypeofNumber() {
|
||||||
return this.runCheck(() => {
|
return this.runCheck(() => {
|
||||||
if (typeof this.baseReference !== 'number') {
|
if (typeof this.getObjectToTestReference() !== 'number') {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Assertion failed: ${this.baseReference} is not of type string, but typeof ${typeof this.baseReference}`
|
`Assertion failed: ${this.baseReference} with drill down ${this.propertyDrillDown} is not of type string, but typeof ${typeof this
|
||||||
|
.baseReference}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -84,9 +95,10 @@ export class Assertion {
|
|||||||
|
|
||||||
public toBeTypeofBoolean() {
|
public toBeTypeofBoolean() {
|
||||||
return this.runCheck(() => {
|
return this.runCheck(() => {
|
||||||
if (typeof this.baseReference !== 'boolean') {
|
if (typeof this.getObjectToTestReference() !== 'boolean') {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Assertion failed: ${this.baseReference} is not of type string, but typeof ${typeof this.baseReference}`
|
`Assertion failed: ${this.baseReference} with drill down ${this.propertyDrillDown} is not of type string, but typeof ${typeof this
|
||||||
|
.baseReference}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -94,10 +106,131 @@ export class Assertion {
|
|||||||
|
|
||||||
public toEqual(comparisonObject: any) {
|
public toEqual(comparisonObject: any) {
|
||||||
return this.runCheck(() => {
|
return this.runCheck(() => {
|
||||||
const result = plugins.fastDeepEqual(this.baseReference, comparisonObject);
|
const result = plugins.fastDeepEqual(this.getObjectToTestReference(), comparisonObject);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
throw new Error(`${this.baseReference} does not equal ${comparisonObject}`);
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} does not equal ${comparisonObject}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public toBeTrue() {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = typeof this.getObjectToTestReference() === 'boolean' && this.getObjectToTestReference() === true;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not true or not of type boolean`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeFalse() {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = typeof this.getObjectToTestReference() === 'boolean' && this.getObjectToTestReference() === false;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not false or not of type boolean`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeInstanceOf(classArg: any) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = this.getObjectToTestReference() instanceof classArg;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not an instance of ${classArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toHaveProperty(propertyArg: string) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = !!this.getObjectToTestReference()[propertyArg];
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} does not have property ${propertyArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeGreaterThan(numberArg: number) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = this.getObjectToTestReference() > numberArg;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not greater than ${numberArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeLessThan(numberArg: number) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = this.getObjectToTestReference() < numberArg;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not less than ${numberArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeNull() {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = this.getObjectToTestReference() === null;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not null`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeUndefined() {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = this.getObjectToTestReference() === undefined;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not undefined`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toBeNullOrUndefined() {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result = this.getObjectToTestReference() === null || this.getObjectToTestReference() === undefined;
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not null or undefined`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toContain(itemArg: any) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const result =
|
||||||
|
this.getObjectToTestReference() instanceof Array &&
|
||||||
|
this.getObjectToTestReference().includes(itemArg);
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not contain ${itemArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toStartWith(itemArg: any) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const testObject = this.getObjectToTestReference();
|
||||||
|
const result =
|
||||||
|
typeof testObject === 'string' &&
|
||||||
|
testObject.startsWith(itemArg);
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not contain ${itemArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toEndWith(itemArg: any) {
|
||||||
|
return this.runCheck(() => {
|
||||||
|
const testObject = this.getObjectToTestReference();
|
||||||
|
const result =
|
||||||
|
typeof testObject === 'string' &&
|
||||||
|
testObject.endsWith(itemArg);
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(`${this.baseReference} with drill down ${this.propertyDrillDown} is not contain ${itemArg}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public property(propertyNameArg: string) {
|
||||||
|
this.propertyDrillDown.push(propertyNameArg);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,10 +7,8 @@ export {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// third party scope
|
// third party scope
|
||||||
import { expect } from 'chai';
|
|
||||||
import fastDeepEqual from 'fast-deep-equal';
|
import fastDeepEqual from 'fast-deep-equal';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
fastDeepEqual,
|
fastDeepEqual,
|
||||||
expect
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user