quidproquo-actionprocessor-awslambda 0.0.239 → 0.0.240
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.
|
@@ -9,7 +9,8 @@ const randomGuid = () => {
|
|
|
9
9
|
};
|
|
10
10
|
exports.randomGuid = randomGuid;
|
|
11
11
|
const matchUrl = (path, url) => {
|
|
12
|
-
console.log('Matching: ', path);
|
|
12
|
+
console.log('Matching (path): ', path);
|
|
13
|
+
console.log('Matching (url): ', url);
|
|
13
14
|
// /attempt/{attemptUuid}/result/{test} => /attempt/:attemptUuid/result/:test
|
|
14
15
|
const modifiedPath = path.replaceAll(/{(.+?)}/g, (m, g) => `:${g}`);
|
|
15
16
|
const matchResult = (0, node_match_path_1.match)(modifiedPath, url);
|
|
@@ -5,7 +5,8 @@ export const randomGuid = () => {
|
|
|
5
5
|
return randomUUID();
|
|
6
6
|
};
|
|
7
7
|
export const matchUrl = (path, url) => {
|
|
8
|
-
console.log('Matching: ', path);
|
|
8
|
+
console.log('Matching (path): ', path);
|
|
9
|
+
console.log('Matching (url): ', url);
|
|
9
10
|
// /attempt/{attemptUuid}/result/{test} => /attempt/:attemptUuid/result/:test
|
|
10
11
|
const modifiedPath = path.replaceAll(/{(.+?)}/g, (m, g) => `:${g}`);
|
|
11
12
|
const matchResult = match(modifiedPath, url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-actionprocessor-awslambda",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.240",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
56
|
"node-cache": "^5.1.2",
|
|
57
57
|
"node-match-path": "^0.6.3",
|
|
58
|
-
"quidproquo-config-aws": "0.0.
|
|
59
|
-
"quidproquo-core": "0.0.
|
|
60
|
-
"quidproquo-webserver": "0.0.
|
|
58
|
+
"quidproquo-config-aws": "0.0.240",
|
|
59
|
+
"quidproquo-core": "0.0.240",
|
|
60
|
+
"quidproquo-webserver": "0.0.240"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/aws-lambda": "^8.10.109",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/jsonwebtoken": "^9.0.2",
|
|
66
66
|
"@types/lodash": "^4.14.194",
|
|
67
67
|
"@types/node": "^18.11.9",
|
|
68
|
-
"quidproquo-tsconfig": "0.0.
|
|
68
|
+
"quidproquo-tsconfig": "0.0.240",
|
|
69
69
|
"typescript": "^4.9.3"
|
|
70
70
|
}
|
|
71
71
|
}
|