diff --git a/Web.ts b/Web.ts index 42d928c..f8a20f9 100644 --- a/Web.ts +++ b/Web.ts @@ -36,7 +36,9 @@ import { TemplateFunction, timeout, unique, - UTILITY_SCOPE + UTILITY_SCOPE, + UTILITY_SCOPE_NAMES, + UTILITY_SCOPE_VALUES } from 'clientnode' import { any, @@ -1673,9 +1675,7 @@ export class Web< let error:null|string = null let templateFunction:TemplateFunction - const utilityScopeName = - Object.keys(UTILITY_SCOPE) as - Array + const utilityScopeName = UTILITY_SCOPE_NAMES const scopeNames:Array = [ 'data', @@ -1721,9 +1721,7 @@ export class Web< parameters[0], parameters[0], parameters, - ...utilityScopeName.map((name) => - UTILITY_SCOPE[name] - ) + ...UTILITY_SCOPE_VALUES ) } catch (error) { console.warn( diff --git a/package.json b/package.json index 3d630b0..a99d5d7 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@typescript-eslint/eslint-plugin": "^7.16.0", "@typescript-eslint/parser": "^7.16.0", "@webcomponents/webcomponentsjs": "^2.8.0", - "clientnode": "^3.0.1161", + "clientnode": "^3.0.1162", "documentation-website": "^1.0.328", "eslint": "^9.6.0", "eslint-config-google": "^0.14.0", diff --git a/yarn.lock b/yarn.lock index 3d4a5ea..251da4d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4980,9 +4980,9 @@ __metadata: languageName: node linkType: hard -"clientnode@npm:^3.0.1161": - version: 3.0.1161 - resolution: "clientnode@npm:3.0.1161" +"clientnode@npm:^3.0.1162": + version: 3.0.1162 + resolution: "clientnode@npm:3.0.1162" peerDependencies: "@babel/runtime": "*" "@types/prop-types": "*" @@ -5000,7 +5000,7 @@ __metadata: optional: true prop-types: optional: true - checksum: 10c0/9600b858318f4cbe70d0c1a9e44364bcc45ff6df1ba382ae353c498e028109d14505ca0a2ad76d485b3f0d282b8b6159271d41ea61a9418d89cd6cfa251b6bc9 + checksum: 10c0/af9f6b2c70631e142387aeac9727d28cb63bc1b98ed805529cafc0cd3d10d16d224b6f36b2881df1d62a60c7ae8ae9da59020b1bfe56cdb8b68476bbd066451c languageName: node linkType: hard @@ -11074,7 +11074,7 @@ __metadata: "@typescript-eslint/eslint-plugin": "npm:^7.16.0" "@typescript-eslint/parser": "npm:^7.16.0" "@webcomponents/webcomponentsjs": "npm:^2.8.0" - clientnode: "npm:^3.0.1161" + clientnode: "npm:^3.0.1162" documentation-website: "npm:^1.0.328" eslint: "npm:^9.6.0" eslint-config-google: "npm:^0.14.0"