@-0/spool
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -5,5 +5,5 @@ import { __awaiter } from "tslib"; | ||
import { EquivMap } from "@thi.ng/associative"; | ||
import { CMD_SUB$, CMD_ARGS, CMD_RESO, CMD_ERRO } from "@-0/keys"; | ||
import { CMD_SUB$, CMD_ARGS, CMD_RESO, CMD_ERRO, CMD_WORK } from "@-0/keys"; | ||
import { stringify_type, xKeyError, key_index_err, diff_keys, stringify_fn } from "@-0/utils"; | ||
const err_str = "🔥 Multiplex Spooling Interrupted 🔥"; | ||
const err_str = "🔥 Command Dispatch Interrupted 🔥"; | ||
const noSubEr = (c, i) => ` | ||
@@ -104,2 +104,7 @@ ${err_str} | ||
}); | ||
const work_in_command_error = C => `${CMD_WORK} key found while running a Command | ||
${stringify_fn(C)} | ||
Check to make sure you've registered this Command | ||
using the \`registerCMD\` function | ||
`; | ||
export const handlePattern = (acc = {}, C = { | ||
@@ -118,2 +123,6 @@ [CMD_SUB$]: undefined, | ||
} | ||
if (C[CMD_WORK]) { | ||
console.warn(work_in_command_error(C)); | ||
return acc; | ||
} | ||
const _args = C[CMD_ARGS]; | ||
@@ -120,0 +129,0 @@ const { args_type, args } = yield processArgs(acc, _args); |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "SPA framework built on top of http://thi.ng/umbrella ecosystem", | ||
@@ -35,4 +35,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@-0/keys": "^0.3.8", | ||
"@-0/utils": "^0.3.8" | ||
"@-0/keys": "^0.3.9", | ||
"@-0/utils": "^0.3.9" | ||
}, | ||
@@ -53,3 +53,3 @@ "peerDependencies": { | ||
"@types/jest": "^26.0.24", | ||
"@types/node": "^16.3.0", | ||
"@types/node": "^16.3.1", | ||
"@typescript-eslint/eslint-plugin": "^4.28.2", | ||
@@ -56,0 +56,0 @@ "@typescript-eslint/parser": "^4.28.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
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
36010
286
Updated@-0/keys@^0.3.9
Updated@-0/utils@^0.3.9