ag-common 0.0.606 → 0.0.607
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.
|
@@ -7,7 +7,8 @@ function redactString(str) {
|
|
|
7
7
|
const repl = '$1<redacted>$2';
|
|
8
8
|
ret = ret.replace(/(\b)grant_type.+?(\b)/gm, repl);
|
|
9
9
|
ret = ret.replace(/(\b)Bearer .+?(\b)/gm, repl);
|
|
10
|
-
|
|
10
|
+
//jwt (base64 with .s)
|
|
11
|
+
ret = ret.replace(/(eyJ[\w-]*\.[\w-]*\.[\w-]*)/gim, '<redacted>');
|
|
11
12
|
return ret;
|
|
12
13
|
}
|
|
13
14
|
exports.redactString = redactString;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.607",
|
|
3
3
|
"name": "ag-common",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"lint": "npx eslint --ext .ts,.tsx .",
|
|
14
14
|
"start": "cross-env BROWSER=none cross-env storybook dev -p 6006",
|
|
15
15
|
"build-storybook": "storybook build -o docs --quiet",
|
|
16
|
-
"test": "globstar -- node --import tsx --test \"src
|
|
16
|
+
"test": "globstar -- node --import tsx --test \"src/**/*.test.ts\""
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-sdk/client-dynamodb": "^3.390",
|