@conduit-client/service-config 3.20.0 → 3.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.js +1 -5
- package/dist/main/index.js.map +1 -1
- package/dist/v1/index.js +0 -5
- package/dist/v1/index.js.map +1 -1
- package/package.json +2 -2
package/dist/main/index.js
CHANGED
package/dist/main/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/v1/index.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
* For full license text, see the LICENSE.txt file
|
|
5
|
-
*/
|
|
6
1
|
import { ok, err, ArrayIsArray } from "@conduit-client/utils";
|
|
7
2
|
function valueFor(value, path) {
|
|
8
3
|
if (path.length === 0 || path[0] === "") {
|
package/dist/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/v1/prioritized.ts"],"sourcesContent":["import {\n ArrayIsArray,\n type DeepPartial,\n type DeepReadonly,\n err,\n ok,\n type Result,\n} from '@conduit-client/utils';\nimport {\n type ConfigObjectValue,\n type ConfigService,\n type ConfigServiceDescriptor,\n type ConfigValidator,\n type ConfigValue,\n} from './config';\n\n/**\n * Calculates the result of evaluating a given path against a ConfigValue.\n *\n * @param value starting value\n * @param path path relative to value\n * @returns result of evaluating path against value, undefined if path is not\n * present in value\n */\nfunction valueFor(value: ConfigValue, path: string[]): ConfigValue | undefined {\n if (path.length === 0 || path[0] === '') {\n return value;\n } else if (value === null || typeof value !== 'object') {\n return undefined;\n } else if (Array.isArray(value)) {\n const index = parseInt(path[0]);\n if (index >= 0) {\n return valueFor(value[index], path.slice(1));\n }\n return undefined;\n } else {\n return valueFor(value[path[0]], path.slice(1));\n }\n}\n\n/**\n * A ConfigService implementation with prioritized config values.\n *\n * @typeParam ConfigData shape of config data\n * @typeParam Priority possible priority values, expressed as a union of strings\n */\nexport class PrioritizedConfigService<\n ConfigData extends ConfigObjectValue = ConfigObjectValue,\n Priority extends string = 'default',\n> implements ConfigService<ConfigData, Priority>\n{\n // Map of priority => config data that has been set at that priority. Insertion\n // order of the entries MUST match priority order (highest priority inserted\n // first, lowest priority last).\n // Note that the values here are actually closer to\n // Extract<DeepPartial<ConfigData>, ConfigObjectValue>, but the recursiveness of\n // that type is more than TypeScript can deal with so we simplify it to\n // ConfigObjectValue.\n protected prioritizedConfigData: Record<Priority, ConfigObjectValue>;\n\n // registered validator functions\n protected validators: Array<ConfigValidator> = [];\n\n // has validation run since the most recent data was set?\n protected validated = false;\n\n constructor(initialConfigDatas: Record<Priority, DeepPartial<ConfigData>>) {\n this.prioritizedConfigData = {} as Record<Priority, ConfigData>;\n\n for (const [p, initialConfigData] of Object.entries(initialConfigDatas)) {\n this.prioritizedConfigData[p as Priority] = (initialConfigData || {}) as ConfigData;\n }\n }\n\n // ConfigService.addValidator\n addValidator(validator: ConfigValidator): void {\n this.validators.push(validator);\n this.validated = false;\n }\n\n // ConfigService.validate\n validate(): Result<void, string[]> {\n const errors: string[] = [];\n\n this.validators.forEach((v) => {\n const result = v(this.unsafeConfig);\n if (result.isErr()) {\n errors.push(...result.error);\n }\n });\n\n this.validated = errors.length === 0;\n\n return errors.length === 0 ? ok(undefined) : err(errors);\n }\n\n // proxies for non-leaf nodes in the config tree\n protected readonlyObjectProxies = new Map<string, ConfigObjectValue>();\n\n // constructs a proxy for the given non-leaf object path in the config tree\n protected buildReadonlyObjectProxy(path: string[]): ConfigObjectValue {\n const key = path.join('\\0');\n let proxy = this.readonlyObjectProxies.get(key);\n\n if (proxy) {\n return proxy;\n }\n\n proxy = new Proxy(Object.create(null), {\n defineProperty: () => {\n throw new Error('cannot (re)define properties on config');\n },\n deleteProperty: () => {\n throw new Error('cannot delete properties on config');\n },\n get: (_, property: string) => {\n const propertyPath = [...path, property];\n const value = this.valueFor(propertyPath);\n // TODO - need to wrap arrays in a Proxy as well\n return typeof value === 'object' && value !== null && !ArrayIsArray(value)\n ? this.buildReadonlyObjectProxy(propertyPath)\n : value;\n },\n getOwnPropertyDescriptor: (target, property: string) => {\n const propertyPath = [...path, property];\n const value = this.valueFor(propertyPath);\n\n return {\n value:\n // TODO - need to wrap arrays in a Proxy as well\n typeof value === 'object' && value !== null && !ArrayIsArray(value)\n ? this.buildReadonlyObjectProxy(propertyPath)\n : value,\n writable: false,\n configurable: true,\n enumerable: true,\n };\n },\n has: (_, property: string) => {\n return this.valueFor([...path, property]) !== undefined;\n },\n ownKeys: () => {\n const keys: string[] = [];\n for (const v of Object.values(this.prioritizedConfigData) as ConfigData[]) {\n const value = valueFor(v, path);\n if (value) {\n keys.push(...Object.keys(value));\n }\n }\n return [...new Set(keys)];\n },\n set: () => {\n throw new Error('cannot directly set values on config');\n },\n });\n\n this.readonlyObjectProxies.set(key, proxy!);\n return proxy!;\n }\n\n // ConfigService.config\n get config() {\n if (!this.validated) {\n const result = this.validate();\n if (result.isErr()) {\n throw result.error.join('; ');\n }\n }\n\n return this.unsafeConfig as DeepReadonly<ConfigData>;\n }\n\n // ConfigService.unsafeConfig\n // cast to unknown is needed because DeepReadonly's recursiveness confuses TypeScript\n readonly unsafeConfig = this.buildReadonlyObjectProxy([]) as unknown;\n\n // ConfigService.set\n set<Return>(\n priority: Priority,\n setter: (config: Exclude<DeepPartial<ConfigData>, undefined>) => Return\n ): Return {\n this.validated = false;\n return setter(this.prioritizedConfigData[priority] as any);\n }\n\n // returns the highest priority value for a given path, undefined if no value\n // is defined for the path at any priority\n protected valueFor(path: string[]): ConfigValue | undefined {\n for (const [_, data] of Object.entries(this.prioritizedConfigData) as Array<\n [Priority, ConfigData]\n >) {\n const value = valueFor(data, path);\n if (value !== undefined) {\n return value;\n }\n }\n }\n}\n\n/**\n * Builds a new ConfigServiceDescriptor.\n *\n * @param initialConfigDatas priority & initial config data; insertion order of\n * the priorities is used to order them (highest priority inserted first,\n * lowest priority last)\n * @returns ConfigServiceDescriptor\n */\nexport function buildServiceDescriptor<\n ConfigData extends ConfigObjectValue = ConfigObjectValue,\n Priority extends string = 'default',\n>(\n initialConfigDatas: Record<Priority, DeepPartial<ConfigData>>\n): ConfigServiceDescriptor<ConfigData, Priority> {\n return {\n type: 'config',\n version: '1.0',\n service: new PrioritizedConfigService<ConfigData, Priority>(initialConfigDatas),\n };\n}\n"],"names":[],"mappings":";;;;;;AAwBA,SAAS,SAAS,OAAoB,MAAyC;AAC3E,MAAI,KAAK,WAAW,KAAK,KAAK,CAAC,MAAM,IAAI;AACrC,WAAO;AAAA,EACX,WAAW,UAAU,QAAQ,OAAO,UAAU,UAAU;AACpD,WAAO;AAAA,EACX,WAAW,MAAM,QAAQ,KAAK,GAAG;AAC7B,UAAM,QAAQ,SAAS,KAAK,CAAC,CAAC;AAC9B,QAAI,SAAS,GAAG;AACZ,aAAO,SAAS,MAAM,KAAK,GAAG,KAAK,MAAM,CAAC,CAAC;AAAA,IAC/C;AACA,WAAO;AAAA,EACX,OAAO;AACH,WAAO,SAAS,MAAM,KAAK,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC;AAAA,EACjD;AACJ;AAQO,MAAM,yBAIb;AAAA,EAgBI,YAAY,oBAA+D;AAL3E,SAAU,aAAqC,CAAA;AAG/C,SAAU,YAAY;AAiCtB,SAAU,4CAA4B,IAAA;AA6EtC,SAAS,eAAe,KAAK,yBAAyB,CAAA,CAAE;AA3GpD,SAAK,wBAAwB,CAAA;AAE7B,eAAW,CAAC,GAAG,iBAAiB,KAAK,OAAO,QAAQ,kBAAkB,GAAG;AACrE,WAAK,sBAAsB,CAAa,IAAK,qBAAqB,CAAA;AAAA,IACtE;AAAA,EACJ;AAAA;AAAA,EAGA,aAAa,WAA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AAI,yBAA+C,kBAAkB;AAAA,EAAA;AAEtF;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/v1/prioritized.ts"],"sourcesContent":["import {\n ArrayIsArray,\n type DeepPartial,\n type DeepReadonly,\n err,\n ok,\n type Result,\n} from '@conduit-client/utils';\nimport {\n type ConfigObjectValue,\n type ConfigService,\n type ConfigServiceDescriptor,\n type ConfigValidator,\n type ConfigValue,\n} from './config';\n\n/**\n * Calculates the result of evaluating a given path against a ConfigValue.\n *\n * @param value starting value\n * @param path path relative to value\n * @returns result of evaluating path against value, undefined if path is not\n * present in value\n */\nfunction valueFor(value: ConfigValue, path: string[]): ConfigValue | undefined {\n if (path.length === 0 || path[0] === '') {\n return value;\n } else if (value === null || typeof value !== 'object') {\n return undefined;\n } else if (Array.isArray(value)) {\n const index = parseInt(path[0]);\n if (index >= 0) {\n return valueFor(value[index], path.slice(1));\n }\n return undefined;\n } else {\n return valueFor(value[path[0]], path.slice(1));\n }\n}\n\n/**\n * A ConfigService implementation with prioritized config values.\n *\n * @typeParam ConfigData shape of config data\n * @typeParam Priority possible priority values, expressed as a union of strings\n */\nexport class PrioritizedConfigService<\n ConfigData extends ConfigObjectValue = ConfigObjectValue,\n Priority extends string = 'default',\n> implements ConfigService<ConfigData, Priority>\n{\n // Map of priority => config data that has been set at that priority. Insertion\n // order of the entries MUST match priority order (highest priority inserted\n // first, lowest priority last).\n // Note that the values here are actually closer to\n // Extract<DeepPartial<ConfigData>, ConfigObjectValue>, but the recursiveness of\n // that type is more than TypeScript can deal with so we simplify it to\n // ConfigObjectValue.\n protected prioritizedConfigData: Record<Priority, ConfigObjectValue>;\n\n // registered validator functions\n protected validators: Array<ConfigValidator> = [];\n\n // has validation run since the most recent data was set?\n protected validated = false;\n\n constructor(initialConfigDatas: Record<Priority, DeepPartial<ConfigData>>) {\n this.prioritizedConfigData = {} as Record<Priority, ConfigData>;\n\n for (const [p, initialConfigData] of Object.entries(initialConfigDatas)) {\n this.prioritizedConfigData[p as Priority] = (initialConfigData || {}) as ConfigData;\n }\n }\n\n // ConfigService.addValidator\n addValidator(validator: ConfigValidator): void {\n this.validators.push(validator);\n this.validated = false;\n }\n\n // ConfigService.validate\n validate(): Result<void, string[]> {\n const errors: string[] = [];\n\n this.validators.forEach((v) => {\n const result = v(this.unsafeConfig);\n if (result.isErr()) {\n errors.push(...result.error);\n }\n });\n\n this.validated = errors.length === 0;\n\n return errors.length === 0 ? ok(undefined) : err(errors);\n }\n\n // proxies for non-leaf nodes in the config tree\n protected readonlyObjectProxies = new Map<string, ConfigObjectValue>();\n\n // constructs a proxy for the given non-leaf object path in the config tree\n protected buildReadonlyObjectProxy(path: string[]): ConfigObjectValue {\n const key = path.join('\\0');\n let proxy = this.readonlyObjectProxies.get(key);\n\n if (proxy) {\n return proxy;\n }\n\n proxy = new Proxy(Object.create(null), {\n defineProperty: () => {\n throw new Error('cannot (re)define properties on config');\n },\n deleteProperty: () => {\n throw new Error('cannot delete properties on config');\n },\n get: (_, property: string) => {\n const propertyPath = [...path, property];\n const value = this.valueFor(propertyPath);\n // TODO - need to wrap arrays in a Proxy as well\n return typeof value === 'object' && value !== null && !ArrayIsArray(value)\n ? this.buildReadonlyObjectProxy(propertyPath)\n : value;\n },\n getOwnPropertyDescriptor: (target, property: string) => {\n const propertyPath = [...path, property];\n const value = this.valueFor(propertyPath);\n\n return {\n value:\n // TODO - need to wrap arrays in a Proxy as well\n typeof value === 'object' && value !== null && !ArrayIsArray(value)\n ? this.buildReadonlyObjectProxy(propertyPath)\n : value,\n writable: false,\n configurable: true,\n enumerable: true,\n };\n },\n has: (_, property: string) => {\n return this.valueFor([...path, property]) !== undefined;\n },\n ownKeys: () => {\n const keys: string[] = [];\n for (const v of Object.values(this.prioritizedConfigData) as ConfigData[]) {\n const value = valueFor(v, path);\n if (value) {\n keys.push(...Object.keys(value));\n }\n }\n return [...new Set(keys)];\n },\n set: () => {\n throw new Error('cannot directly set values on config');\n },\n });\n\n this.readonlyObjectProxies.set(key, proxy!);\n return proxy!;\n }\n\n // ConfigService.config\n get config() {\n if (!this.validated) {\n const result = this.validate();\n if (result.isErr()) {\n throw result.error.join('; ');\n }\n }\n\n return this.unsafeConfig as DeepReadonly<ConfigData>;\n }\n\n // ConfigService.unsafeConfig\n // cast to unknown is needed because DeepReadonly's recursiveness confuses TypeScript\n readonly unsafeConfig = this.buildReadonlyObjectProxy([]) as unknown;\n\n // ConfigService.set\n set<Return>(\n priority: Priority,\n setter: (config: Exclude<DeepPartial<ConfigData>, undefined>) => Return\n ): Return {\n this.validated = false;\n return setter(this.prioritizedConfigData[priority] as any);\n }\n\n // returns the highest priority value for a given path, undefined if no value\n // is defined for the path at any priority\n protected valueFor(path: string[]): ConfigValue | undefined {\n for (const [_, data] of Object.entries(this.prioritizedConfigData) as Array<\n [Priority, ConfigData]\n >) {\n const value = valueFor(data, path);\n if (value !== undefined) {\n return value;\n }\n }\n }\n}\n\n/**\n * Builds a new ConfigServiceDescriptor.\n *\n * @param initialConfigDatas priority & initial config data; insertion order of\n * the priorities is used to order them (highest priority inserted first,\n * lowest priority last)\n * @returns ConfigServiceDescriptor\n */\nexport function buildServiceDescriptor<\n ConfigData extends ConfigObjectValue = ConfigObjectValue,\n Priority extends string = 'default',\n>(\n initialConfigDatas: Record<Priority, DeepPartial<ConfigData>>\n): ConfigServiceDescriptor<ConfigData, Priority> {\n return {\n type: 'config',\n version: '1.0',\n service: new PrioritizedConfigService<ConfigData, Priority>(initialConfigDatas),\n };\n}\n"],"names":[],"mappings":";AAwBA,SAAS,SAAS,OAAoB,MAAyC;AAC3E,MAAI,KAAK,WAAW,KAAK,KAAK,CAAC,MAAM,IAAI;AACrC,WAAO;AAAA,EACX,WAAW,UAAU,QAAQ,OAAO,UAAU,UAAU;AACpD,WAAO;AAAA,EACX,WAAW,MAAM,QAAQ,KAAK,GAAG;AAC7B,UAAM,QAAQ,SAAS,KAAK,CAAC,CAAC;AAC9B,QAAI,SAAS,GAAG;AACZ,aAAO,SAAS,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B,UAAI,OAAO,SAAS;AAChB,cAAM,OAAO,MAAM,KAAK,IAAI;AAAA,MAChC;AAAA,IACJ;AAEA,WAAO,KAAK;AAAA,EAChB;AAAA;AAAA,EAOA,IACI,UACA,QACM;AACN,SAAK,YAAY;AACjB,WAAO,OAAO,KAAK,sBAAsB,QAAQ,CAAQ;AAAA,EAC7D;AAAA;AAAA;AAAA,EAIU,SAAS,MAAyC;AACxD,eAAW,CAAC,GAAG,IAAI,KAAK,OAAO,QAAQ,KAAK,qBAAqB,GAE9D;AACC,YAAM,QAAQ,SAAS,MAAM,IAAI;AACjC,UAAI,UAAU,QAAW;AACrB,eAAO;AAAA,MACX;AAAA,IACJ;AAAA,EACJ;AACJ;AAUO,SAAS,uBAIZ,oBAC6C;AAC7C,SAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS,IAAI,yBAA+C,kBAAkB;AAAA,EAAA;AAEtF;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduit-client/service-config",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OneStore Cache Service definition",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"watch": "npm run build --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@conduit-client/utils": "3.20.
|
|
34
|
+
"@conduit-client/utils": "3.20.3"
|
|
35
35
|
},
|
|
36
36
|
"volta": {
|
|
37
37
|
"extends": "../../../../package.json"
|