quidproquo-actionprocessor-web 0.1.3 → 0.1.4
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/lib/commonjs/actionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/core/config/index.js +1 -0
- package/lib/commonjs/actionProcessor/core/config/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/core/index.js +1 -0
- package/lib/commonjs/actionProcessor/core/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/index.js +1 -0
- package/lib/commonjs/actionProcessor/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/api/createApiRequestActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/web/api/createApiRequestActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/api/index.js +1 -0
- package/lib/commonjs/actionProcessor/web/api/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/index.js +1 -0
- package/lib/commonjs/actionProcessor/web/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsGetActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsGetActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsSetActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsSetActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/index.js +1 -0
- package/lib/commonjs/actionProcessor/web/queryParams/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/window/getWindowGetLocationActionProcessor.js +1 -0
- package/lib/commonjs/actionProcessor/web/window/getWindowGetLocationActionProcessor.js.map +1 -0
- package/lib/commonjs/actionProcessor/web/window/index.js +1 -0
- package/lib/commonjs/actionProcessor/web/window/index.js.map +1 -0
- package/lib/commonjs/actionProcessor/webserver/index.js +1 -0
- package/lib/commonjs/actionProcessor/webserver/index.js.map +1 -0
- package/lib/commonjs/getWebActionProcessors.js +1 -0
- package/lib/commonjs/getWebActionProcessors.js.map +1 -0
- package/lib/commonjs/index.js +1 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/esm/actionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/core/config/index.js +1 -0
- package/lib/esm/actionProcessor/core/config/index.js.map +1 -0
- package/lib/esm/actionProcessor/core/index.js +1 -0
- package/lib/esm/actionProcessor/core/index.js.map +1 -0
- package/lib/esm/actionProcessor/index.js +1 -0
- package/lib/esm/actionProcessor/index.js.map +1 -0
- package/lib/esm/actionProcessor/web/api/createApiRequestActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/web/api/createApiRequestActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/web/api/index.js +1 -0
- package/lib/esm/actionProcessor/web/api/index.js.map +1 -0
- package/lib/esm/actionProcessor/web/index.js +1 -0
- package/lib/esm/actionProcessor/web/index.js.map +1 -0
- package/lib/esm/actionProcessor/web/queryParams/getQueryParamsGetActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/web/queryParams/getQueryParamsGetActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/web/queryParams/getQueryParamsSetActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/web/queryParams/getQueryParamsSetActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/web/queryParams/index.js +1 -0
- package/lib/esm/actionProcessor/web/queryParams/index.js.map +1 -0
- package/lib/esm/actionProcessor/web/window/getWindowGetLocationActionProcessor.js +1 -0
- package/lib/esm/actionProcessor/web/window/getWindowGetLocationActionProcessor.js.map +1 -0
- package/lib/esm/actionProcessor/web/window/index.js +1 -0
- package/lib/esm/actionProcessor/web/window/index.js.map +1 -0
- package/lib/esm/actionProcessor/webserver/index.js +1 -0
- package/lib/esm/actionProcessor/webserver/index.js.map +1 -0
- package/lib/esm/getWebActionProcessors.js +1 -0
- package/lib/esm/getWebActionProcessors.js.map +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigGetParameterActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/getConfigGetParameterActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AAEzB,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAqC,EAAE;IAC/F,OAAO,KAA0B,EAAE,4CAArB,EAAE,aAAa,EAAE;QAC7B,oCAAoC;QACpC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAE3D,kDAAkD;QAClD,IAAI,cAAc,KAAK,IAAI,EAAE,CAAC;YAC5B,OAAO,IAAA,mCAAiB,EAAC,+BAAa,CAAC,QAAQ,EAAE,cAAc,aAAa,8BAA8B,CAAC,CAAC;QAC9G,CAAC;QAED,OAAO,IAAA,8BAAY,EAAC,cAAc,CAAC,CAAC;IACtC,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,oCAAoC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC9I,CAAC,kCAAgB,CAAC,YAAY,CAAC,EAAE,4BAA4B,CAAC,SAAS,CAAC;KACzE,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,oCAAoC,wCAE9C","sourcesContent":["import {\n ActionProcessorList,\n ActionProcessorListResolver,\n actionResult,\n actionResultError,\n ConfigActionType,\n ConfigGetParameterActionProcessor,\n ErrorTypeEnum,\n QPQConfig,\n} from 'quidproquo-core';\n\nconst getProcessConfigGetParameter = (qpqConfig: QPQConfig): ConfigGetParameterActionProcessor => {\n return async ({ parameterName }) => {\n // Read the value from Local Storage\n const parameterValue = localStorage.getItem(parameterName);\n\n // If the parameter doesn't exist, return an error\n if (parameterValue === null) {\n return actionResultError(ErrorTypeEnum.NotFound, `Parameter '${parameterName}' not found in Local Storage`);\n }\n\n return actionResult(parameterValue);\n };\n};\n\nexport const getConfigGetParameterActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [ConfigActionType.GetParameter]: getProcessConfigGetParameter(qpqConfig),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigGetParametersActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/getConfigGetParametersActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AAEzB,MAAM,6BAA6B,GAAG,CAAC,SAAoB,EAAsC,EAAE;IACjG,OAAO,KAA2B,EAAE,4CAAtB,EAAE,cAAc,EAAE;QAC9B,6DAA6D;QAC7D,MAAM,eAAe,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACpD,IAAI;YACJ,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;YACjC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,qBAAqB;SAClE,CAAC,CAAC,CAAC;QAEJ,0BAA0B;QAC1B,MAAM,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE1E,iDAAiD;QACjD,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACjC,OAAO,IAAA,mCAAiB,EACtB,+BAAa,CAAC,QAAQ,EACtB,0CAA0C,iBAAiB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACpG,CAAC;QACJ,CAAC;QAED,4BAA4B;QAC5B,OAAO,IAAA,8BAAY,EAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,qCAAqC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC/I,CAAC,kCAAgB,CAAC,aAAa,CAAC,EAAE,6BAA6B,CAAC,SAAS,CAAC;KAC3E,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,qCAAqC,yCAE/C","sourcesContent":["import {\n ActionProcessorList,\n ActionProcessorListResolver,\n actionResult,\n actionResultError,\n ConfigActionType,\n ConfigGetParametersActionProcessor,\n ErrorTypeEnum,\n QPQConfig,\n} from 'quidproquo-core';\n\nconst getProcessConfigGetParameters = (qpqConfig: QPQConfig): ConfigGetParametersActionProcessor => {\n return async ({ parameterNames }) => {\n // Retrieve values from Local Storage for each parameter name\n const parameterValues = parameterNames.map((name) => ({\n name,\n value: localStorage.getItem(name),\n found: localStorage.getItem(name) !== null, // Check if it exists\n }));\n\n // Find missing parameters\n const missingParameters = parameterValues.filter((param) => !param.found);\n\n // If any parameters are missing, return an error\n if (missingParameters.length > 0) {\n return actionResultError(\n ErrorTypeEnum.NotFound,\n `Parameters not found in Local Storage: ${missingParameters.map((param) => param.name).join(', ')}`,\n );\n }\n\n // Return an array of values\n return actionResult(parameterValues.map((param) => param.value));\n };\n};\n\nexport const getConfigGetParametersActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [ConfigActionType.GetParameters]: getProcessConfigGetParameters(qpqConfig),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigSetParameterActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/getConfigSetParameterActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AAEzB,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAqC,EAAE;IAC/F,OAAO,KAA0C,EAAE,4CAArC,EAAE,aAAa,EAAE,cAAc,EAAE;QAC7C,IAAI,CAAC;YACH,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;YAEpD,OAAO,IAAA,8BAAY,EAAC,KAAK,CAAC,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,OAAO,IAAA,kDAAgC,EAAC,KAAK,EAAE;gBAC7C,kBAAkB,EAAE,GAAG,EAAE,CACvB,IAAA,mCAAiB,EAAC,iDAA+B,CAAC,aAAa,EAAE,kDAAkD,aAAa,IAAI,CAAC;aACxI,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,oCAAoC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC9I,CAAC,kCAAgB,CAAC,YAAY,CAAC,EAAE,4BAA4B,CAAC,SAAS,CAAC;KACzE,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,oCAAoC,wCAE9C","sourcesContent":["import {\n ActionProcessorList,\n ActionProcessorListResolver,\n actionResult,\n actionResultError,\n actionResultErrorFromCaughtError,\n ConfigActionType,\n ConfigSetParameterActionProcessor,\n ConfigSetParameterErrorTypeEnum,\n QPQConfig,\n} from 'quidproquo-core';\n\nconst getProcessConfigSetParameter = (qpqConfig: QPQConfig): ConfigSetParameterActionProcessor => {\n return async ({ parameterName, parameterValue }) => {\n try {\n localStorage.setItem(parameterName, parameterValue);\n\n return actionResult(void 0);\n } catch (error: unknown) {\n return actionResultErrorFromCaughtError(error, {\n QuotaExceededError: () =>\n actionResultError(ConfigSetParameterErrorTypeEnum.QuotaExceeded, `Local Storage quota exceeded saving parameter '${parameterName}'.`),\n });\n }\n };\n};\n\nexport const getConfigSetParameterActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [ConfigActionType.SetParameter]: getProcessConfigSetParameter(qpqConfig),\n});\n"]}
|
|
@@ -17,3 +17,4 @@ const getConfigActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(v
|
|
|
17
17
|
return (Object.assign(Object.assign(Object.assign({}, (yield (0, getConfigGetParameterActionProcessor_1.getConfigGetParameterActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetParametersActionProcessor_1.getConfigGetParametersActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigSetParameterActionProcessor_1.getConfigSetParameterActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
18
18
|
});
|
|
19
19
|
exports.getConfigActionProcessor = getConfigActionProcessor;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,iGAA8F;AAC9F,mGAAgG;AAChG,iGAA8F;AAEvF,MAAM,wBAAwB,GAAgC,CACnE,SAAoB,EACpB,mBAAwC,EACV,EAAE;IAAC,OAAA,+CAC9B,CAAC,MAAM,IAAA,2EAAoC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAC5E,CAAC,MAAM,IAAA,6EAAqC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAC7E,CAAC,MAAM,IAAA,2EAAoC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,EAC/E,CAAA;EAAA,CAAC;AAPU,QAAA,wBAAwB,4BAOlC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getConfigGetParameterActionProcessor } from './getConfigGetParameterActionProcessor';\nimport { getConfigGetParametersActionProcessor } from './getConfigGetParametersActionProcessor';\nimport { getConfigSetParameterActionProcessor } from './getConfigSetParameterActionProcessor';\n\nexport const getConfigActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getConfigGetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getConfigGetParametersActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getConfigSetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -15,3 +15,4 @@ const getCoreActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(voi
|
|
|
15
15
|
return (Object.assign({}, (yield (0, config_1.getConfigActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
16
16
|
});
|
|
17
17
|
exports.getCoreActionProcessor = getCoreActionProcessor;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actionProcessor/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAAoD;AAE7C,MAAM,sBAAsB,GAAgC,CACjE,SAAoB,EACpB,mBAAwC,EACV,EAAE;IAAC,OAAA,mBAC9B,CAAC,MAAM,IAAA,iCAAwB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,EACnE,CAAA;EAAA,CAAC;AALU,QAAA,sBAAsB,0BAKhC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getConfigActionProcessor } from './config';\n\nexport const getCoreActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getConfigActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actionProcessor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,8CAA4B","sourcesContent":["export * from './core';\nexport * from './web';\nexport * from './webserver';\n"]}
|
|
@@ -41,3 +41,4 @@ const createApiRequestActionProcessor = (options) => () => __awaiter(void 0, voi
|
|
|
41
41
|
exports.createApiRequestActionProcessor = createApiRequestActionProcessor;
|
|
42
42
|
// Zero-config default registered in the standard web processors.
|
|
43
43
|
exports.getApiRequestActionProcessor = (0, exports.createApiRequestActionProcessor)();
|
|
44
|
+
//# sourceMappingURL=createApiRequestActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createApiRequestActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/api/createApiRequestActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiG;AACjG,mDAA0E;AAC1E,+DAA6D;AAY7D,MAAM,4BAA4B,GAAG,CAAC,QAAgB,EAAU,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;IACrD,OAAO,GAAG,QAAQ,SAAS,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjE,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,OAA0C,EAAuC,EAAE;IAC/G,OAAO,KAA2E,EAAE,4CAAtE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE;;QAC9E,MAAM,QAAQ,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,qBAAqB,mCAAI,4BAA4B,CAAC,CAAC,OAAO,CAAC,CAAC;QAE3F,MAAM,GAAG,GAAG,MAAM,IAAA,4CAAqB,EAAC;YACtC,GAAG,EAAE,QAAQ;YACb,QAAQ;YACR,MAAM;YACN,IAAI;YACJ,MAAM;YACN,YAAY;YACZ,OAAO,kCACF,OAAO,GACP,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,uDAAI,CAC3B;SACF,CAAC,CAAC;QAEH,OAAO,IAAA,8BAAY,EAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,+BAA+B,GAC1C,CAAC,OAA0C,EAA+B,EAAE,CAC5E,GAAuC,EAAE;IAAC,OAAA,CAAC;QACzC,CAAC,8BAAa,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC;KACvD,CAAC,CAAA;EAAA,CAAC;AAJQ,QAAA,+BAA+B,mCAIvC;AAEL,iEAAiE;AACpD,QAAA,4BAA4B,GAAgC,IAAA,uCAA+B,GAAE,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult } from 'quidproquo-core';\nimport { ApiActionType, ApiRequestActionProcessor } from 'quidproquo-web';\nimport { preformNetworkRequest } from 'quidproquo-webserver';\n\nexport interface ApiRequestActionProcessorOptions {\n // Resolve the base url for a given service. The default ignores the service name\n // and targets api.<currentHost> — the single-backend case that covers most apps.\n resolveServiceBaseUrl?: (service: string) => string;\n\n // Provide headers to attach to every request — e.g. auth (any scheme), tracing,\n // tenant ids. Merged into (and overriding) the per-call headers. Default: none.\n getHeaders?: () => Record<string, string> | undefined;\n}\n\nconst defaultResolveServiceBaseUrl = (_service: string): string => {\n const { protocol, hostname, port } = window.location;\n return `${protocol}//api.${hostname}${port ? `:${port}` : ''}`;\n};\n\nconst getProcessApiRequest = (options?: ApiRequestActionProcessorOptions): ApiRequestActionProcessor<any, any> => {\n return async ({ service, endpoint, method, body, params, headers, responseType }) => {\n const basePath = (options?.resolveServiceBaseUrl ?? defaultResolveServiceBaseUrl)(service);\n\n const res = await preformNetworkRequest({\n url: endpoint,\n basePath,\n method,\n body,\n params,\n responseType,\n headers: {\n ...headers,\n ...options?.getHeaders?.(),\n },\n });\n\n return actionResult(res);\n };\n};\n\nexport const createApiRequestActionProcessor =\n (options?: ApiRequestActionProcessorOptions): ActionProcessorListResolver =>\n async (): Promise<ActionProcessorList> => ({\n [ApiActionType.Request]: getProcessApiRequest(options),\n });\n\n// Zero-config default registered in the standard web processors.\nexport const getApiRequestActionProcessor: ActionProcessorListResolver = createApiRequestActionProcessor();\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD","sourcesContent":["export * from './createApiRequestActionProcessor';\n"]}
|
|
@@ -32,3 +32,4 @@ const getWebActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void
|
|
|
32
32
|
return (Object.assign(Object.assign(Object.assign({}, (yield (0, api_1.getApiRequestActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, queryParams_1.getQueryParamsActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, window_1.getWindowActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
33
33
|
});
|
|
34
34
|
exports.getWebActionProcessor = getWebActionProcessor;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actionProcessor/web/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+BAAqD;AACrD,+CAA8D;AAC9D,qCAAoD;AAEpD,wCAAsB;AAEf,MAAM,qBAAqB,GAAgC,CAChE,SAAoB,EACpB,mBAAwC,EACV,EAAE;IAAC,OAAA,+CAC9B,CAAC,MAAM,IAAA,kCAA4B,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GACpE,CAAC,MAAM,IAAA,2CAA6B,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GACrE,CAAC,MAAM,IAAA,iCAAwB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,EACnE,CAAA;EAAA,CAAC;AAPU,QAAA,qBAAqB,yBAO/B","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getApiRequestActionProcessor } from './api';\nimport { getQueryParamsActionProcessor } from './queryParams';\nimport { getWindowActionProcessor } from './window';\n\nexport * from './api';\n\nexport const getWebActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getApiRequestActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getQueryParamsActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getWindowActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryParamsGetActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/getQueryParamsGetActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4G;AAC5G,mDAAsF;AAEtF,MAAM,wBAAwB,GAAG,CAAC,SAAoB,EAAiC,EAAE;IACvF,OAAO,KAAgB,EAAE,4CAAX,EAAE,GAAG,EAAE;QACnB,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAErC,OAAO,IAAA,8BAAY,EAAC,MAAM,CAAC,CAAC;IAC9B,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,gCAAgC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC1I,CAAC,sCAAqB,CAAC,GAAG,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;KACjE,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,gCAAgC,oCAE1C","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { QueryParamsActionType, QueryParamsGetActionProcessor } from 'quidproquo-web';\n\nconst getProcessQueryParamsGet = (qpqConfig: QPQConfig): QueryParamsGetActionProcessor => {\n return async ({ key }) => {\n const urlParams = new URLSearchParams(window.location.search);\n const values = urlParams.getAll(key);\n\n return actionResult(values);\n };\n};\n\nexport const getQueryParamsGetActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [QueryParamsActionType.Get]: getProcessQueryParamsGet(qpqConfig),\n});\n"]}
|
package/lib/commonjs/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryParamsGetAllActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4G;AAC5G,mDAAyF;AAEzF,MAAM,2BAA2B,GAAG,CAAC,SAAoB,EAAoC,EAAE;IAC7F,OAAO,GAAS,EAAE;QAChB,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9D,MAAM,YAAY,GAA6B,EAAE,CAAC;QAElD,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC/B,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBACtB,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,GAAI,YAAY,CAAC,GAAG,CAAc,EAAE,KAAK,CAAC,CAAC;YAClE,CAAC;iBAAM,CAAC;gBACN,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAA,8BAAY,EAAC,YAAY,CAAC,CAAC;IACpC,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,mCAAmC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC7I,CAAC,sCAAqB,CAAC,MAAM,CAAC,EAAE,2BAA2B,CAAC,SAAS,CAAC;KACvE,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,mCAAmC,uCAE7C","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { QueryParamsActionType, QueryParamsGetAllActionProcessor } from 'quidproquo-web';\n\nconst getProcessQueryParamsGetAll = (qpqConfig: QPQConfig): QueryParamsGetAllActionProcessor => {\n return async () => {\n const urlParams = new URLSearchParams(window.location.search);\n const paramsObject: Record<string, string[]> = {};\n\n urlParams.forEach((value, key) => {\n if (paramsObject[key]) {\n paramsObject[key] = [...(paramsObject[key] as string[]), value];\n } else {\n paramsObject[key] = [value];\n }\n });\n\n return actionResult(paramsObject);\n };\n};\n\nexport const getQueryParamsGetAllActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [QueryParamsActionType.GetAll]: getProcessQueryParamsGetAll(qpqConfig),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryParamsSetActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/getQueryParamsSetActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4G;AAC5G,mDAAsF;AAEtF,MAAM,wBAAwB,GAAG,CAAC,SAAoB,EAAiC,EAAE;IACvF,OAAO,KAA4C,EAAE,4CAAvC,EAAE,GAAG,EAAE,MAAM,EAAE,kBAAkB,EAAE;QAC/C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1C,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAElD,oDAAoD;QACpD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;aAAM,CAAC;YACN,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACtB,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC;QAEzD,IAAI,kBAAkB,EAAE,CAAC;YACvB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,IAAA,8BAAY,EAAC,KAAK,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,gCAAgC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC1I,CAAC,sCAAqB,CAAC,GAAG,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;KACjE,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,gCAAgC,oCAE1C","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { QueryParamsActionType, QueryParamsSetActionProcessor } from 'quidproquo-web';\n\nconst getProcessQueryParamsSet = (qpqConfig: QPQConfig): QueryParamsSetActionProcessor => {\n return async ({ key, values, createHistoryEntry }) => {\n const url = new URL(window.location.href);\n const urlParams = new URLSearchParams(url.search);\n\n // Ensure values is an array and remove key if empty\n if (values.length === 0) {\n urlParams.delete(key);\n } else {\n urlParams.delete(key);\n values.forEach((value) => urlParams.append(key, value));\n }\n\n const newUrl = `${url.pathname}?${urlParams.toString()}`;\n\n if (createHistoryEntry) {\n window.history.pushState(null, '', newUrl);\n } else {\n window.history.replaceState(null, '', newUrl);\n }\n\n return actionResult(void 0);\n };\n};\n\nexport const getQueryParamsSetActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [QueryParamsActionType.Set]: getProcessQueryParamsSet(qpqConfig),\n});\n"]}
|
|
@@ -17,3 +17,4 @@ const getQueryParamsActionProcessor = (qpqConfig, dynamicModuleLoader) => __awai
|
|
|
17
17
|
return (Object.assign(Object.assign(Object.assign({}, (yield (0, getQueryParamsGetActionProcessor_1.getQueryParamsGetActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getQueryParamsGetAllActionProcessor_1.getQueryParamsGetAllActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getQueryParamsSetActionProcessor_1.getQueryParamsSetActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
18
18
|
});
|
|
19
19
|
exports.getQueryParamsActionProcessor = getQueryParamsActionProcessor;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yFAAsF;AACtF,+FAA4F;AAC5F,yFAAsF;AAE/E,MAAM,6BAA6B,GAAgC,CACxE,SAAoB,EACpB,mBAAwC,EACV,EAAE;IAAC,OAAA,+CAC9B,CAAC,MAAM,IAAA,mEAAgC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GACxE,CAAC,MAAM,IAAA,yEAAmC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAC3E,CAAC,MAAM,IAAA,mEAAgC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,EAC3E,CAAA;EAAA,CAAC;AAPU,QAAA,6BAA6B,iCAOvC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getQueryParamsGetActionProcessor } from './getQueryParamsGetActionProcessor';\nimport { getQueryParamsGetAllActionProcessor } from './getQueryParamsGetAllActionProcessor';\nimport { getQueryParamsSetActionProcessor } from './getQueryParamsSetActionProcessor';\n\nexport const getQueryParamsActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getQueryParamsGetActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getQueryParamsGetAllActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getQueryParamsSetActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWindowGetLocationActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/window/getWindowGetLocationActionProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4G;AAC5G,mDAAoF;AAEpF,MAAM,2BAA2B,GAAG,CAAC,SAAoB,EAAoC,EAAE;IAC7F,OAAO,GAAS,EAAE;QAChB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEjG,oEAAoE;QACpE,OAAO,IAAA,8BAAY,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,mCAAmC,GAAgC,CAAO,SAAoB,EAAgC,EAAE;IAAC,OAAA,CAAC;QAC7I,CAAC,iCAAgB,CAAC,WAAW,CAAC,EAAE,2BAA2B,CAAC,SAAS,CAAC;KACvE,CAAC,CAAA;EAAA,CAAC;AAFU,QAAA,mCAAmC,uCAE7C","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { WindowActionType, WindowGetLocationActionProcessor } from 'quidproquo-web';\n\nconst getProcessWindowGetLocation = (qpqConfig: QPQConfig): WindowGetLocationActionProcessor => {\n return async () => {\n const { href, origin, protocol, host, hostname, port, pathname, search, hash } = window.location;\n\n // Return a plain serializable copy, never the live Location object.\n return actionResult({ href, origin, protocol, host, hostname, port, pathname, search, hash });\n };\n};\n\nexport const getWindowGetLocationActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [WindowActionType.GetLocation]: getProcessWindowGetLocation(qpqConfig),\n});\n"]}
|
|
@@ -15,3 +15,4 @@ const getWindowActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(v
|
|
|
15
15
|
return (Object.assign({}, (yield (0, getWindowGetLocationActionProcessor_1.getWindowGetLocationActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
16
16
|
});
|
|
17
17
|
exports.getWindowActionProcessor = getWindowActionProcessor;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/window/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+FAA4F;AAErF,MAAM,wBAAwB,GAAgC,CACnE,SAAoB,EACpB,mBAAwC,EACV,EAAE;IAAC,OAAA,mBAC9B,CAAC,MAAM,IAAA,yEAAmC,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,EAC9E,CAAA;EAAA,CAAC;AALU,QAAA,wBAAwB,4BAKlC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getWindowGetLocationActionProcessor } from './getWindowGetLocationActionProcessor';\n\nexport const getWindowActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getWindowGetLocationActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -15,3 +15,4 @@ exports.getWebserverActionProcessor = void 0;
|
|
|
15
15
|
// processors (none yet).
|
|
16
16
|
const getWebserverActionProcessor = (_qpqConfig, _dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () { return ({}); });
|
|
17
17
|
exports.getWebserverActionProcessor = getWebserverActionProcessor;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actionProcessor/webserver/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,wFAAwF;AACxF,yFAAyF;AACzF,yBAAyB;AAClB,MAAM,2BAA2B,GAAgC,CACtE,UAAqB,EACrB,oBAAyC,EACX,EAAE,kDAAC,OAAA,CAAC,EAAE,CAAC,CAAA,GAAA,CAAC;AAH3B,QAAA,2BAA2B,+BAGA","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\n// Shared webserver processors (dns, ...) are owned by quidproquo-actionprocessor-js and\n// spread in by getWebActionProcessors. This aggregator holds only web-specific webserver\n// processors (none yet).\nexport const getWebserverActionProcessor: ActionProcessorListResolver = async (\n _qpqConfig: QPQConfig,\n _dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({});\n"]}
|
|
@@ -16,3 +16,4 @@ const getWebActionProcessors = (qpqConfig, dynamicModuleLoader) => __awaiter(voi
|
|
|
16
16
|
return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (yield (0, quidproquo_actionprocessor_js_1.getCoreActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, quidproquo_actionprocessor_js_1.getWebserverActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, actionProcessor_1.getCoreActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, actionProcessor_1.getWebserverActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, actionProcessor_1.getWebActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
17
17
|
});
|
|
18
18
|
exports.getWebActionProcessors = getWebActionProcessors;
|
|
19
|
+
//# sourceMappingURL=getWebActionProcessors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebActionProcessors.js","sourceRoot":"","sources":["../../src/getWebActionProcessors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iFAGuC;AAGvC,uDAI2B;AAEpB,MAAM,sBAAsB,GAAgC,CACjE,SAAoB,EACpB,mBAAwC,EACV,EAAE;IAAC,OAAA,2EAC9B,CAAC,MAAM,IAAA,sDAAwB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAChE,CAAC,MAAM,IAAA,2DAA6B,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAErE,CAAC,MAAM,IAAA,wCAAyB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GACjE,CAAC,MAAM,IAAA,6CAA8B,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,GAEtE,CAAC,MAAM,IAAA,uCAAqB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,EAChE,CAAA;EAAA,CAAC;AAXU,QAAA,sBAAsB,0BAWhC","sourcesContent":["import {\n getCoreActionProcessor as getJsCoreActionProcessor,\n getWebserverActionProcessor as getJsWebserverActionProcessor,\n} from 'quidproquo-actionprocessor-js';\nimport { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport {\n getCoreActionProcessor as getWebCoreActionProcessor,\n getWebActionProcessor,\n getWebserverActionProcessor as getWebWebserverActionProcessor,\n} from './actionProcessor';\n\nexport const getWebActionProcessors: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getJsCoreActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getJsWebserverActionProcessor(qpqConfig, dynamicModuleLoader)),\n\n ...(await getWebCoreActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getWebWebserverActionProcessor(qpqConfig, dynamicModuleLoader)),\n\n ...(await getWebActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./actionProcessor"), exports);
|
|
18
18
|
__exportStar(require("./getWebActionProcessors"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,2DAAyC","sourcesContent":["export * from './actionProcessor';\nexport * from './getWebActionProcessors';\n"]}
|
|
@@ -13,3 +13,4 @@ const getProcessConfigGetParameter = (qpqConfig) => {
|
|
|
13
13
|
export const getConfigGetParameterActionProcessor = async (qpqConfig) => ({
|
|
14
14
|
[ConfigActionType.GetParameter]: getProcessConfigGetParameter(qpqConfig),
|
|
15
15
|
});
|
|
16
|
+
//# sourceMappingURL=getConfigGetParameterActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigGetParameterActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/getConfigGetParameterActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAEhB,aAAa,GAEd,MAAM,iBAAiB,CAAC;AAEzB,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAqC,EAAE;IAC/F,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE;QACjC,oCAAoC;QACpC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAE3D,kDAAkD;QAClD,IAAI,cAAc,KAAK,IAAI,EAAE,CAAC;YAC5B,OAAO,iBAAiB,CAAC,aAAa,CAAC,QAAQ,EAAE,cAAc,aAAa,8BAA8B,CAAC,CAAC;QAC9G,CAAC;QAED,OAAO,YAAY,CAAC,cAAc,CAAC,CAAC;IACtC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC9I,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE,4BAA4B,CAAC,SAAS,CAAC;CACzE,CAAC,CAAC","sourcesContent":["import {\n ActionProcessorList,\n ActionProcessorListResolver,\n actionResult,\n actionResultError,\n ConfigActionType,\n ConfigGetParameterActionProcessor,\n ErrorTypeEnum,\n QPQConfig,\n} from 'quidproquo-core';\n\nconst getProcessConfigGetParameter = (qpqConfig: QPQConfig): ConfigGetParameterActionProcessor => {\n return async ({ parameterName }) => {\n // Read the value from Local Storage\n const parameterValue = localStorage.getItem(parameterName);\n\n // If the parameter doesn't exist, return an error\n if (parameterValue === null) {\n return actionResultError(ErrorTypeEnum.NotFound, `Parameter '${parameterName}' not found in Local Storage`);\n }\n\n return actionResult(parameterValue);\n };\n};\n\nexport const getConfigGetParameterActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [ConfigActionType.GetParameter]: getProcessConfigGetParameter(qpqConfig),\n});\n"]}
|
|
@@ -20,3 +20,4 @@ const getProcessConfigGetParameters = (qpqConfig) => {
|
|
|
20
20
|
export const getConfigGetParametersActionProcessor = async (qpqConfig) => ({
|
|
21
21
|
[ConfigActionType.GetParameters]: getProcessConfigGetParameters(qpqConfig),
|
|
22
22
|
});
|
|
23
|
+
//# sourceMappingURL=getConfigGetParametersActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigGetParametersActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/getConfigGetParametersActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAEhB,aAAa,GAEd,MAAM,iBAAiB,CAAC;AAEzB,MAAM,6BAA6B,GAAG,CAAC,SAAoB,EAAsC,EAAE;IACjG,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;QAClC,6DAA6D;QAC7D,MAAM,eAAe,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACpD,IAAI;YACJ,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;YACjC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,qBAAqB;SAClE,CAAC,CAAC,CAAC;QAEJ,0BAA0B;QAC1B,MAAM,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE1E,iDAAiD;QACjD,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACjC,OAAO,iBAAiB,CACtB,aAAa,CAAC,QAAQ,EACtB,0CAA0C,iBAAiB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACpG,CAAC;QACJ,CAAC;QAED,4BAA4B;QAC5B,OAAO,YAAY,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC/I,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,6BAA6B,CAAC,SAAS,CAAC;CAC3E,CAAC,CAAC","sourcesContent":["import {\n ActionProcessorList,\n ActionProcessorListResolver,\n actionResult,\n actionResultError,\n ConfigActionType,\n ConfigGetParametersActionProcessor,\n ErrorTypeEnum,\n QPQConfig,\n} from 'quidproquo-core';\n\nconst getProcessConfigGetParameters = (qpqConfig: QPQConfig): ConfigGetParametersActionProcessor => {\n return async ({ parameterNames }) => {\n // Retrieve values from Local Storage for each parameter name\n const parameterValues = parameterNames.map((name) => ({\n name,\n value: localStorage.getItem(name),\n found: localStorage.getItem(name) !== null, // Check if it exists\n }));\n\n // Find missing parameters\n const missingParameters = parameterValues.filter((param) => !param.found);\n\n // If any parameters are missing, return an error\n if (missingParameters.length > 0) {\n return actionResultError(\n ErrorTypeEnum.NotFound,\n `Parameters not found in Local Storage: ${missingParameters.map((param) => param.name).join(', ')}`,\n );\n }\n\n // Return an array of values\n return actionResult(parameterValues.map((param) => param.value));\n };\n};\n\nexport const getConfigGetParametersActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [ConfigActionType.GetParameters]: getProcessConfigGetParameters(qpqConfig),\n});\n"]}
|
|
@@ -15,3 +15,4 @@ const getProcessConfigSetParameter = (qpqConfig) => {
|
|
|
15
15
|
export const getConfigSetParameterActionProcessor = async (qpqConfig) => ({
|
|
16
16
|
[ConfigActionType.SetParameter]: getProcessConfigSetParameter(qpqConfig),
|
|
17
17
|
});
|
|
18
|
+
//# sourceMappingURL=getConfigSetParameterActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigSetParameterActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/getConfigSetParameterActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EACZ,iBAAiB,EACjB,gCAAgC,EAChC,gBAAgB,EAEhB,+BAA+B,GAEhC,MAAM,iBAAiB,CAAC;AAEzB,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAqC,EAAE;IAC/F,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,EAAE;QACjD,IAAI,CAAC;YACH,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;YAEpD,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,OAAO,gCAAgC,CAAC,KAAK,EAAE;gBAC7C,kBAAkB,EAAE,GAAG,EAAE,CACvB,iBAAiB,CAAC,+BAA+B,CAAC,aAAa,EAAE,kDAAkD,aAAa,IAAI,CAAC;aACxI,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC9I,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE,4BAA4B,CAAC,SAAS,CAAC;CACzE,CAAC,CAAC","sourcesContent":["import {\n ActionProcessorList,\n ActionProcessorListResolver,\n actionResult,\n actionResultError,\n actionResultErrorFromCaughtError,\n ConfigActionType,\n ConfigSetParameterActionProcessor,\n ConfigSetParameterErrorTypeEnum,\n QPQConfig,\n} from 'quidproquo-core';\n\nconst getProcessConfigSetParameter = (qpqConfig: QPQConfig): ConfigSetParameterActionProcessor => {\n return async ({ parameterName, parameterValue }) => {\n try {\n localStorage.setItem(parameterName, parameterValue);\n\n return actionResult(void 0);\n } catch (error: unknown) {\n return actionResultErrorFromCaughtError(error, {\n QuotaExceededError: () =>\n actionResultError(ConfigSetParameterErrorTypeEnum.QuotaExceeded, `Local Storage quota exceeded saving parameter '${parameterName}'.`),\n });\n }\n };\n};\n\nexport const getConfigSetParameterActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [ConfigActionType.SetParameter]: getProcessConfigSetParameter(qpqConfig),\n});\n"]}
|
|
@@ -6,3 +6,4 @@ export const getConfigActionProcessor = async (qpqConfig, dynamicModuleLoader) =
|
|
|
6
6
|
...(await getConfigGetParametersActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
7
7
|
...(await getConfigSetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
8
8
|
});
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/core/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAE9F,MAAM,CAAC,MAAM,wBAAwB,GAAgC,KAAK,EACxE,SAAoB,EACpB,mBAAwC,EACV,EAAE,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,oCAAoC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAC/E,GAAG,CAAC,MAAM,qCAAqC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAChF,GAAG,CAAC,MAAM,oCAAoC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CAChF,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getConfigGetParameterActionProcessor } from './getConfigGetParameterActionProcessor';\nimport { getConfigGetParametersActionProcessor } from './getConfigGetParametersActionProcessor';\nimport { getConfigSetParameterActionProcessor } from './getConfigSetParameterActionProcessor';\n\nexport const getConfigActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getConfigGetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getConfigGetParametersActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getConfigSetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actionProcessor/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,CAAC,MAAM,sBAAsB,GAAgC,KAAK,EACtE,SAAoB,EACpB,mBAAwC,EACV,EAAE,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,wBAAwB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CACpE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getConfigActionProcessor } from './config';\n\nexport const getCoreActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getConfigActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actionProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC","sourcesContent":["export * from './core';\nexport * from './web';\nexport * from './webserver';\n"]}
|
|
@@ -28,3 +28,4 @@ export const createApiRequestActionProcessor = (options) => async () => ({
|
|
|
28
28
|
});
|
|
29
29
|
// Zero-config default registered in the standard web processors.
|
|
30
30
|
export const getApiRequestActionProcessor = createApiRequestActionProcessor();
|
|
31
|
+
//# sourceMappingURL=createApiRequestActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createApiRequestActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/api/createApiRequestActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,aAAa,EAA6B,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAY7D,MAAM,4BAA4B,GAAG,CAAC,QAAgB,EAAU,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;IACrD,OAAO,GAAG,QAAQ,SAAS,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjE,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,OAA0C,EAAuC,EAAE;IAC/G,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAClF,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,qBAAqB,IAAI,4BAA4B,CAAC,CAAC,OAAO,CAAC,CAAC;QAE3F,MAAM,GAAG,GAAG,MAAM,qBAAqB,CAAC;YACtC,GAAG,EAAE,QAAQ;YACb,QAAQ;YACR,MAAM;YACN,IAAI;YACJ,MAAM;YACN,YAAY;YACZ,OAAO,EAAE;gBACP,GAAG,OAAO;gBACV,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE;aAC3B;SACF,CAAC,CAAC;QAEH,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAC1C,CAAC,OAA0C,EAA+B,EAAE,CAC5E,KAAK,IAAkC,EAAE,CAAC,CAAC;IACzC,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC;CACvD,CAAC,CAAC;AAEL,iEAAiE;AACjE,MAAM,CAAC,MAAM,4BAA4B,GAAgC,+BAA+B,EAAE,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult } from 'quidproquo-core';\nimport { ApiActionType, ApiRequestActionProcessor } from 'quidproquo-web';\nimport { preformNetworkRequest } from 'quidproquo-webserver';\n\nexport interface ApiRequestActionProcessorOptions {\n // Resolve the base url for a given service. The default ignores the service name\n // and targets api.<currentHost> — the single-backend case that covers most apps.\n resolveServiceBaseUrl?: (service: string) => string;\n\n // Provide headers to attach to every request — e.g. auth (any scheme), tracing,\n // tenant ids. Merged into (and overriding) the per-call headers. Default: none.\n getHeaders?: () => Record<string, string> | undefined;\n}\n\nconst defaultResolveServiceBaseUrl = (_service: string): string => {\n const { protocol, hostname, port } = window.location;\n return `${protocol}//api.${hostname}${port ? `:${port}` : ''}`;\n};\n\nconst getProcessApiRequest = (options?: ApiRequestActionProcessorOptions): ApiRequestActionProcessor<any, any> => {\n return async ({ service, endpoint, method, body, params, headers, responseType }) => {\n const basePath = (options?.resolveServiceBaseUrl ?? defaultResolveServiceBaseUrl)(service);\n\n const res = await preformNetworkRequest({\n url: endpoint,\n basePath,\n method,\n body,\n params,\n responseType,\n headers: {\n ...headers,\n ...options?.getHeaders?.(),\n },\n });\n\n return actionResult(res);\n };\n};\n\nexport const createApiRequestActionProcessor =\n (options?: ApiRequestActionProcessorOptions): ActionProcessorListResolver =>\n async (): Promise<ActionProcessorList> => ({\n [ApiActionType.Request]: getProcessApiRequest(options),\n });\n\n// Zero-config default registered in the standard web processors.\nexport const getApiRequestActionProcessor: ActionProcessorListResolver = createApiRequestActionProcessor();\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './createApiRequestActionProcessor';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actionProcessor/web/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,cAAc,OAAO,CAAC;AAEtB,MAAM,CAAC,MAAM,qBAAqB,GAAgC,KAAK,EACrE,SAAoB,EACpB,mBAAwC,EACV,EAAE,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,4BAA4B,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IACvE,GAAG,CAAC,MAAM,6BAA6B,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IACxE,GAAG,CAAC,MAAM,wBAAwB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CACpE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getApiRequestActionProcessor } from './api';\nimport { getQueryParamsActionProcessor } from './queryParams';\nimport { getWindowActionProcessor } from './window';\n\nexport * from './api';\n\nexport const getWebActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getApiRequestActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getQueryParamsActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getWindowActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryParamsGetActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/getQueryParamsGetActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAiC,MAAM,gBAAgB,CAAC;AAEtF,MAAM,wBAAwB,GAAG,CAAC,SAAoB,EAAiC,EAAE;IACvF,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QACvB,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAErC,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC1I,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;CACjE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { QueryParamsActionType, QueryParamsGetActionProcessor } from 'quidproquo-web';\n\nconst getProcessQueryParamsGet = (qpqConfig: QPQConfig): QueryParamsGetActionProcessor => {\n return async ({ key }) => {\n const urlParams = new URLSearchParams(window.location.search);\n const values = urlParams.getAll(key);\n\n return actionResult(values);\n };\n};\n\nexport const getQueryParamsGetActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [QueryParamsActionType.Get]: getProcessQueryParamsGet(qpqConfig),\n});\n"]}
|
|
@@ -18,3 +18,4 @@ const getProcessQueryParamsGetAll = (qpqConfig) => {
|
|
|
18
18
|
export const getQueryParamsGetAllActionProcessor = async (qpqConfig) => ({
|
|
19
19
|
[QueryParamsActionType.GetAll]: getProcessQueryParamsGetAll(qpqConfig),
|
|
20
20
|
});
|
|
21
|
+
//# sourceMappingURL=getQueryParamsGetAllActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryParamsGetAllActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/getQueryParamsGetAllActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAoC,MAAM,gBAAgB,CAAC;AAEzF,MAAM,2BAA2B,GAAG,CAAC,SAAoB,EAAoC,EAAE;IAC7F,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9D,MAAM,YAAY,GAA6B,EAAE,CAAC;QAElD,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC/B,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBACtB,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,GAAI,YAAY,CAAC,GAAG,CAAc,EAAE,KAAK,CAAC,CAAC;YAClE,CAAC;iBAAM,CAAC;gBACN,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,YAAY,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC7I,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,2BAA2B,CAAC,SAAS,CAAC;CACvE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { QueryParamsActionType, QueryParamsGetAllActionProcessor } from 'quidproquo-web';\n\nconst getProcessQueryParamsGetAll = (qpqConfig: QPQConfig): QueryParamsGetAllActionProcessor => {\n return async () => {\n const urlParams = new URLSearchParams(window.location.search);\n const paramsObject: Record<string, string[]> = {};\n\n urlParams.forEach((value, key) => {\n if (paramsObject[key]) {\n paramsObject[key] = [...(paramsObject[key] as string[]), value];\n } else {\n paramsObject[key] = [value];\n }\n });\n\n return actionResult(paramsObject);\n };\n};\n\nexport const getQueryParamsGetAllActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [QueryParamsActionType.GetAll]: getProcessQueryParamsGetAll(qpqConfig),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryParamsSetActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/getQueryParamsSetActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAiC,MAAM,gBAAgB,CAAC;AAEtF,MAAM,wBAAwB,GAAG,CAAC,SAAoB,EAAiC,EAAE;IACvF,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE,EAAE;QACnD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1C,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAElD,oDAAoD;QACpD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;aAAM,CAAC;YACN,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACtB,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC;QAEzD,IAAI,kBAAkB,EAAE,CAAC;YACvB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC1I,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;CACjE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { QueryParamsActionType, QueryParamsSetActionProcessor } from 'quidproquo-web';\n\nconst getProcessQueryParamsSet = (qpqConfig: QPQConfig): QueryParamsSetActionProcessor => {\n return async ({ key, values, createHistoryEntry }) => {\n const url = new URL(window.location.href);\n const urlParams = new URLSearchParams(url.search);\n\n // Ensure values is an array and remove key if empty\n if (values.length === 0) {\n urlParams.delete(key);\n } else {\n urlParams.delete(key);\n values.forEach((value) => urlParams.append(key, value));\n }\n\n const newUrl = `${url.pathname}?${urlParams.toString()}`;\n\n if (createHistoryEntry) {\n window.history.pushState(null, '', newUrl);\n } else {\n window.history.replaceState(null, '', newUrl);\n }\n\n return actionResult(void 0);\n };\n};\n\nexport const getQueryParamsSetActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [QueryParamsActionType.Set]: getProcessQueryParamsSet(qpqConfig),\n});\n"]}
|
|
@@ -6,3 +6,4 @@ export const getQueryParamsActionProcessor = async (qpqConfig, dynamicModuleLoad
|
|
|
6
6
|
...(await getQueryParamsGetAllActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
7
7
|
...(await getQueryParamsSetActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
8
8
|
});
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/queryParams/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,CAAC,MAAM,6BAA6B,GAAgC,KAAK,EAC7E,SAAoB,EACpB,mBAAwC,EACV,EAAE,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,gCAAgC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAC3E,GAAG,CAAC,MAAM,mCAAmC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAC9E,GAAG,CAAC,MAAM,gCAAgC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CAC5E,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getQueryParamsGetActionProcessor } from './getQueryParamsGetActionProcessor';\nimport { getQueryParamsGetAllActionProcessor } from './getQueryParamsGetAllActionProcessor';\nimport { getQueryParamsSetActionProcessor } from './getQueryParamsSetActionProcessor';\n\nexport const getQueryParamsActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getQueryParamsGetActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getQueryParamsGetAllActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getQueryParamsSetActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -10,3 +10,4 @@ const getProcessWindowGetLocation = (qpqConfig) => {
|
|
|
10
10
|
export const getWindowGetLocationActionProcessor = async (qpqConfig) => ({
|
|
11
11
|
[WindowActionType.GetLocation]: getProcessWindowGetLocation(qpqConfig),
|
|
12
12
|
});
|
|
13
|
+
//# sourceMappingURL=getWindowGetLocationActionProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWindowGetLocationActionProcessor.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/window/getWindowGetLocationActionProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAoC,MAAM,gBAAgB,CAAC;AAEpF,MAAM,2BAA2B,GAAG,CAAC,SAAoB,EAAoC,EAAE;IAC7F,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEjG,oEAAoE;QACpE,OAAO,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAgC,KAAK,EAAE,SAAoB,EAAgC,EAAE,CAAC,CAAC;IAC7I,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,2BAA2B,CAAC,SAAS,CAAC;CACvE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, actionResult, QPQConfig } from 'quidproquo-core';\nimport { WindowActionType, WindowGetLocationActionProcessor } from 'quidproquo-web';\n\nconst getProcessWindowGetLocation = (qpqConfig: QPQConfig): WindowGetLocationActionProcessor => {\n return async () => {\n const { href, origin, protocol, host, hostname, port, pathname, search, hash } = window.location;\n\n // Return a plain serializable copy, never the live Location object.\n return actionResult({ href, origin, protocol, host, hostname, port, pathname, search, hash });\n };\n};\n\nexport const getWindowGetLocationActionProcessor: ActionProcessorListResolver = async (qpqConfig: QPQConfig): Promise<ActionProcessorList> => ({\n [WindowActionType.GetLocation]: getProcessWindowGetLocation(qpqConfig),\n});\n"]}
|
|
@@ -2,3 +2,4 @@ import { getWindowGetLocationActionProcessor } from './getWindowGetLocationActio
|
|
|
2
2
|
export const getWindowActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
3
|
...(await getWindowGetLocationActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
4
|
});
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/actionProcessor/web/window/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,MAAM,CAAC,MAAM,wBAAwB,GAAgC,KAAK,EACxE,SAAoB,EACpB,mBAAwC,EACV,EAAE,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,mCAAmC,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CAC/E,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport { getWindowGetLocationActionProcessor } from './getWindowGetLocationActionProcessor';\n\nexport const getWindowActionProcessor: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getWindowGetLocationActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actionProcessor/webserver/index.ts"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,yFAAyF;AACzF,yBAAyB;AACzB,MAAM,CAAC,MAAM,2BAA2B,GAAgC,KAAK,EAC3E,UAAqB,EACrB,oBAAyC,EACX,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\n// Shared webserver processors (dns, ...) are owned by quidproquo-actionprocessor-js and\n// spread in by getWebActionProcessors. This aggregator holds only web-specific webserver\n// processors (none yet).\nexport const getWebserverActionProcessor: ActionProcessorListResolver = async (\n _qpqConfig: QPQConfig,\n _dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({});\n"]}
|
|
@@ -7,3 +7,4 @@ export const getWebActionProcessors = async (qpqConfig, dynamicModuleLoader) =>
|
|
|
7
7
|
...(await getWebWebserverActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
8
8
|
...(await getWebActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
9
9
|
});
|
|
10
|
+
//# sourceMappingURL=getWebActionProcessors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWebActionProcessors.js","sourceRoot":"","sources":["../../src/getWebActionProcessors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,IAAI,wBAAwB,EAClD,2BAA2B,IAAI,6BAA6B,GAC7D,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,sBAAsB,IAAI,yBAAyB,EACnD,qBAAqB,EACrB,2BAA2B,IAAI,8BAA8B,GAC9D,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,sBAAsB,GAAgC,KAAK,EACtE,SAAoB,EACpB,mBAAwC,EACV,EAAE,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,wBAAwB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IACnE,GAAG,CAAC,MAAM,6BAA6B,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAExE,GAAG,CAAC,MAAM,yBAAyB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IACpE,GAAG,CAAC,MAAM,8BAA8B,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAEzE,GAAG,CAAC,MAAM,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;CACjE,CAAC,CAAC","sourcesContent":["import {\n getCoreActionProcessor as getJsCoreActionProcessor,\n getWebserverActionProcessor as getJsWebserverActionProcessor,\n} from 'quidproquo-actionprocessor-js';\nimport { ActionProcessorList, ActionProcessorListResolver, DynamicModuleLoader, QPQConfig } from 'quidproquo-core';\n\nimport {\n getCoreActionProcessor as getWebCoreActionProcessor,\n getWebActionProcessor,\n getWebserverActionProcessor as getWebWebserverActionProcessor,\n} from './actionProcessor';\n\nexport const getWebActionProcessors: ActionProcessorListResolver = async (\n qpqConfig: QPQConfig,\n dynamicModuleLoader: DynamicModuleLoader,\n): Promise<ActionProcessorList> => ({\n ...(await getJsCoreActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getJsWebserverActionProcessor(qpqConfig, dynamicModuleLoader)),\n\n ...(await getWebCoreActionProcessor(qpqConfig, dynamicModuleLoader)),\n ...(await getWebWebserverActionProcessor(qpqConfig, dynamicModuleLoader)),\n\n ...(await getWebActionProcessor(qpqConfig, dynamicModuleLoader)),\n});\n"]}
|
package/lib/esm/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './actionProcessor';\nexport * from './getWebActionProcessors';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-actionprocessor-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"homepage": "https://github.com/joe-coady/quidproquo#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@anthropic-ai/sdk": "^0.19.1",
|
|
36
|
-
"quidproquo-actionprocessor-js": "0.1.
|
|
37
|
-
"quidproquo-core": "0.1.
|
|
38
|
-
"quidproquo-web": "0.1.
|
|
39
|
-
"quidproquo-webserver": "0.1.
|
|
36
|
+
"quidproquo-actionprocessor-js": "0.1.4",
|
|
37
|
+
"quidproquo-core": "0.1.4",
|
|
38
|
+
"quidproquo-web": "0.1.4",
|
|
39
|
+
"quidproquo-webserver": "0.1.4",
|
|
40
40
|
"uuidv7": "^1.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"quidproquo-tsconfig": "0.1.
|
|
43
|
+
"quidproquo-tsconfig": "0.1.4",
|
|
44
44
|
"typescript": "^5.8.2"
|
|
45
45
|
}
|
|
46
46
|
}
|