@raythurnevoid/svelte-hooks
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -28,7 +28,7 @@ "use strict"; | ||
class _Use { | ||
deps; | ||
constructor() { } | ||
hook(deps) { | ||
var _a; | ||
let uninitialized = ((_a = this.deps) === null || _a === void 0 ? void 0 : _a.length) === undefined; | ||
let firstUpdate = uninitialized && (deps === null || deps === void 0 ? void 0 : deps.length) !== undefined; | ||
let uninitialized = this.deps?.length === undefined; | ||
let firstUpdate = uninitialized && deps?.length !== undefined; | ||
let updated = firstUpdate || (this.deps !== deps && !utils_1.arrayEquals(this.deps, deps)); | ||
@@ -153,2 +153,1 @@ if (updated) { | ||
exports.createHookApi = createHookApi; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
@@ -8,2 +8,1 @@ "use strict"; | ||
exports.arrayEquals = arrayEquals; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@raythurnevoid/svelte-hooks", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
"main": "./cjs/index.js", | ||
"module": "./esm/index.js", | ||
"scripts": { | ||
"clean-lib": "del-cli lib", | ||
"copy:package:cjs": "copyfiles --up 1 cjs/package.json lib/cjs", | ||
"copy:package": "copyfiles package.json lib", | ||
"copy:src:cjs": "copyfiles --up 1 src/**/*.svelte lib/cjs", | ||
"copy:src:esm": "copyfiles --up 1 src/**/*.svelte lib/esm", | ||
"copy:src:ts": "copyfiles --up 1 src/**/*.* lib/ts", | ||
"copy:src": "npm-run-all --parallel copy:src:cjs copy:src:esm copy:src:ts", | ||
"copy:cjs": "copyfiles --up 1 src/**/*.!(ts)* lib/cjs", | ||
"copy:src": "copyfiles --up 1 src/**/*.* lib/src", | ||
"copy": "copyfiles --up 1 src/**/*.!(ts)* lib", | ||
"tsc:cjs": "tsc -p tsconfig.lib.cjs.json", | ||
"tsc:esm": "tsc -p tsconfig.lib.esm.json", | ||
"lib": "npm-run-all clean-lib copy:package copy:src tsc:cjs tsc:esm", | ||
"tsc": "tsc -p tsconfig.lib.json", | ||
"lib": "npm-run-all clean-lib copy:package copy:package:cjs copy copy:cjs copy:src tsc tsc:cjs", | ||
"prepackage": "npm run lib", | ||
@@ -21,2 +19,6 @@ "package": "npm publish ./lib --access public", | ||
}, | ||
"type": "module", | ||
"browserslist": [ | ||
"last 1 year and >5% and supports es6-module" | ||
], | ||
"repository": { | ||
@@ -32,10 +34,6 @@ "type": "git", | ||
"homepage": "https://github.com/raythurnevoid/svelte-hooks#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@raythurnevoid/svelte-template": "^0.0.13", | ||
"copyfiles": "^2.4.1", | ||
"del-cli": "^3.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"svelte": "^3.32.0" | ||
"@raythurnevoid/svelte-template": "^0.1.4", | ||
"svelte": "^3.38.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
26
511
Yes
25080
1