Comparing version 1.3.3 to 1.3.4
{ | ||
"name": "boostact", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"main": "index.js", | ||
@@ -24,2 +24,3 @@ "scripts": { | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"favicons-webpack-plugin": "^4.2.0", | ||
"html-webpack-plugin": "^4.5.0", | ||
@@ -31,6 +32,3 @@ "mini-css-extract-plugin": "^1.0.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-dev-server": "^3.11.0", | ||
"highlight.js": "^10.4.1", | ||
"jss": "^10.5.0", | ||
"jss-preset-default": "^10.5.0" | ||
"webpack-dev-server": "^3.11.0" | ||
}, | ||
@@ -46,2 +44,10 @@ "keywords": [ | ||
"dependencies": { | ||
"@fortawesome/fontawesome-free": "^5.15.1", | ||
"color": "^3.1.3", | ||
"file-loader": "^6.2.0", | ||
"highlight.js": "^10.4.1", | ||
"jss": "^10.5.0", | ||
"jss-preset-default": "^10.5.0", | ||
"preact": "^10.5.7", | ||
"styled-components": "^5.2.1", | ||
"vanilla-router": "^1.2.8" | ||
@@ -48,0 +54,0 @@ }, |
@@ -408,3 +408,3 @@ // aws key | ||
} | ||
HOOKS[CURRENT_HOOK_ID].work = fn; | ||
HOOKS[CURRENT_HOOK_ID].cleanUp = HOOKS[CURRENT_HOOK_ID].work(); | ||
@@ -411,0 +411,0 @@ if (HOOKS[CURRENT_HOOK_ID].cleanUp && typeof HOOKS[CURRENT_HOOK_ID].cleanUp !== "function") { |
class EventModule { | ||
constructor() { | ||
this.eventNode = []; | ||
} | ||
add(vNode) { | ||
if (!vNode.dom) return; | ||
if (this.eventNode.some((node) => node.dom.isEqualNode(vNode.dom))) return; | ||
this.eventNode.push(vNode); | ||
} | ||
clear() { | ||
this.eventNode.length = 0; | ||
} | ||
eventCall(event) { | ||
const handlers = []; | ||
event.path.forEach((element, index) => { | ||
if (index > event.path.length - 2) return; | ||
const targetNode = this.eventNode.find((node) => node.dom.isEqualNode(element)); | ||
const eventType = `on${this.capitalize(event.type)}`; | ||
const handler = targetNode && targetNode.props && targetNode.props[eventType]; | ||
if (typeof handler === "function") handlers.push(handler); | ||
}); | ||
handlers.forEach((handler) => handler(event)); | ||
} | ||
capitalize(str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
constructor(){ | ||
this.eventNode = []; | ||
} | ||
add(vNode){ | ||
if(!vNode.dom) return; | ||
if(this.eventNode.some((node) => node.dom.isEqualNode(vNode.dom))) return; | ||
this.eventNode.push(vNode); | ||
} | ||
clear(){ | ||
this.eventNode.length = 0; | ||
} | ||
eventCall(event){ | ||
const handlers = []; | ||
event.path.forEach((element,index) => { | ||
if(index > event.path.length - 2) return; | ||
const targetNode = this.eventNode.find((node) => node.dom.isEqualNode(element)); | ||
const eventType = `on${this.capitalize(event.type)}` | ||
const handler = targetNode && targetNode.props && targetNode.props[eventType]; | ||
if(typeof handler === "function") | ||
handlers.push(handler); | ||
}) | ||
handlers.forEach((handler) => handler(event)); | ||
} | ||
capitalize(str){ | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
} | ||
export default new EventModule(); | ||
export default new EventModule; |
@@ -63,2 +63,2 @@ import Router from "vanilla-router"; | ||
export default { Link, Route }; | ||
export { Link, Route }; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
50942
20
8
528
9
1
+ Addedcolor@^3.1.3
+ Addedfile-loader@^6.2.0
+ Addedhighlight.js@^10.4.1
+ Addedjss@^10.5.0
+ Addedjss-preset-default@^10.5.0
+ Addedpreact@^10.5.7
+ Addedstyled-components@^5.2.1
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.5(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.5(transitive)
+ Added@babel/helper-annotate-as-pure@7.25.9(transitive)
+ Added@babel/helper-compilation-targets@7.26.5(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-plugin-utils@7.26.5(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.5(transitive)
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/runtime@7.26.0(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.26.5(transitive)
+ Added@babel/types@7.26.5(transitive)
+ Added@emotion/is-prop-valid@1.3.1(transitive)
+ Added@emotion/memoize@0.9.0(transitive)
+ Added@emotion/stylis@0.8.5(transitive)
+ Added@emotion/unitless@0.7.5(transitive)
+ Added@fortawesome/fontawesome-free@5.15.4(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/source-map@0.3.6(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@types/eslint@9.6.1(transitive)
+ Added@types/eslint-scope@3.7.7(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Added@types/json-schema@7.0.15(transitive)
+ Added@types/node@22.10.5(transitive)
+ Added@webassemblyjs/ast@1.14.1(transitive)
+ Added@webassemblyjs/floating-point-hex-parser@1.13.2(transitive)
+ Added@webassemblyjs/helper-api-error@1.13.2(transitive)
+ Added@webassemblyjs/helper-buffer@1.14.1(transitive)
+ Added@webassemblyjs/helper-numbers@1.13.2(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.13.2(transitive)
+ Added@webassemblyjs/helper-wasm-section@1.14.1(transitive)
+ Added@webassemblyjs/ieee754@1.13.2(transitive)
+ Added@webassemblyjs/leb128@1.13.2(transitive)
+ Added@webassemblyjs/utf8@1.13.2(transitive)
+ Added@webassemblyjs/wasm-edit@1.14.1(transitive)
+ Added@webassemblyjs/wasm-gen@1.14.1(transitive)
+ Added@webassemblyjs/wasm-opt@1.14.1(transitive)
+ Added@webassemblyjs/wasm-parser@1.14.1(transitive)
+ Added@webassemblyjs/wast-printer@1.14.1(transitive)
+ Added@xtuc/ieee754@1.2.0(transitive)
+ Added@xtuc/long@4.2.2(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedajv@6.12.68.17.1(transitive)
+ Addedajv-formats@2.1.1(transitive)
+ Addedajv-keywords@3.5.25.1.0(transitive)
+ Addedbabel-plugin-styled-components@2.1.4(transitive)
+ Addedbig.js@5.2.2(transitive)
+ Addedbrowserslist@4.24.4(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addedcaniuse-lite@1.0.30001692(transitive)
+ Addedchrome-trace-event@1.0.4(transitive)
+ Addedcolor@3.2.1(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addedcss-color-keywords@1.0.0(transitive)
+ Addedcss-to-react-native@3.2.0(transitive)
+ Addedcss-vendor@2.0.8(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedelectron-to-chromium@1.5.80(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedenhanced-resolve@5.18.0(transitive)
+ Addedes-module-lexer@1.6.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedeslint-scope@5.1.1(transitive)
+ Addedesrecurse@4.3.0(transitive)
+ Addedestraverse@4.3.05.3.0(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfast-uri@3.0.5(transitive)
+ Addedfile-loader@6.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglob-to-regexp@0.4.1(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@3.0.04.0.0(transitive)
+ Addedhighlight.js@10.7.3(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedhyphenate-style-name@1.1.0(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedis-in-browser@1.1.3(transitive)
+ Addedjest-worker@27.5.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.1.0(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedjson-schema-traverse@0.4.11.0.0(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedjss@10.10.0(transitive)
+ Addedjss-plugin-camel-case@10.10.0(transitive)
+ Addedjss-plugin-compose@10.10.0(transitive)
+ Addedjss-plugin-default-unit@10.10.0(transitive)
+ Addedjss-plugin-expand@10.10.0(transitive)
+ Addedjss-plugin-extend@10.10.0(transitive)
+ Addedjss-plugin-global@10.10.0(transitive)
+ Addedjss-plugin-nested@10.10.0(transitive)
+ Addedjss-plugin-props-sort@10.10.0(transitive)
+ Addedjss-plugin-rule-value-function@10.10.0(transitive)
+ Addedjss-plugin-rule-value-observable@10.10.0(transitive)
+ Addedjss-plugin-template@10.10.0(transitive)
+ Addedjss-plugin-vendor-prefixer@10.10.0(transitive)
+ Addedjss-preset-default@10.10.0(transitive)
+ Addedloader-runner@4.3.0(transitive)
+ Addedloader-utils@2.0.4(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedms@2.1.3(transitive)
+ Addedneo-async@2.6.2(transitive)
+ Addednode-releases@2.0.19(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedpreact@10.25.4(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedreact-is@16.13.119.0.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedscheduler@0.25.0(transitive)
+ Addedschema-utils@3.3.04.3.0(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedserialize-javascript@6.0.2(transitive)
+ Addedshallowequal@1.1.0(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedstyled-components@5.3.11(transitive)
+ Addedsupports-color@5.5.08.1.1(transitive)
+ Addedsymbol-observable@1.2.0(transitive)
+ Addedtapable@2.2.1(transitive)
+ Addedterser@5.37.0(transitive)
+ Addedterser-webpack-plugin@5.3.11(transitive)
+ Addedtiny-warning@1.0.3(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedupdate-browserslist-db@1.1.2(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedwatchpack@2.4.2(transitive)
+ Addedwebpack@5.97.1(transitive)
+ Addedwebpack-sources@3.2.3(transitive)
+ Addedyallist@3.1.1(transitive)