mongodb-redact 1.1.0 → 1.1.1

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/regexes.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const regexes: readonly [readonly [RegExp, "$1$2$4<base64>$5"], readonly [RegExp, "<certificate>"], readonly [RegExp, "<private key>"], readonly [RegExp, "$1/<path>/"], readonly [RegExp, "$1\\<path>\\"], readonly [RegExp, "$1/<path>/"], readonly [RegExp, "/$1/<user>/"], readonly [RegExp, "/$1/<user>/"], readonly [RegExp, "\\$1\\<user>\\"], readonly [RegExp, "<email>"], readonly [RegExp, "<ip address>"], readonly [RegExp, "<url>"], readonly [RegExp, "<mongodb uri>"], readonly [RegExp, "#schema/<namespace>"]];
1
+ export declare const regexes: readonly [readonly [RegExp, "$1$2$4<base64>$5"], readonly [RegExp, "<certificate>"], readonly [RegExp, "<private key>"], readonly [RegExp, "$1$2/<user>/"], readonly [RegExp, "$1$2\\<user>\\"], readonly [RegExp, "$1<email>"], readonly [RegExp, "<ip address>"], readonly [RegExp, "<url>"], readonly [RegExp, "<mongodb uri>"], readonly [RegExp, "#schema/<namespace>"]];
2
2
  //# sourceMappingURL=regexes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"regexes.d.ts","sourceRoot":"","sources":["../src/regexes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,mfAoDV,CAAC"}
1
+ {"version":3,"file":"regexes.d.ts","sourceRoot":"","sources":["../src/regexes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,+WAiDV,CAAC"}
package/dist/regexes.js CHANGED
@@ -11,18 +11,17 @@ exports.regexes = [
11
11
  /-----BEGIN RSA PRIVATE KEY-----.*-----END RSA PRIVATE KEY-----/gm,
12
12
  '<private key>',
13
13
  ],
14
- [/(file:\/\/)?\S+\/Contents\/Resources\/app\//gm, '$1/<path>/'],
15
- [/(file:\/\/)?([a-zA-Z]:)?\\\S+\\resources\\app\\/gm, '$1\\<path>\\'],
16
- [/(file:\/\/)?([a-zA-Z]:)?\/\S+\/resources\/app\//gm, '$1/<path>/'],
17
- [/\/(Users?)\/[^/]*\//gm, '/$1/<user>/'],
18
14
  [
19
- /\/(usr|home|user|users|u01|var\/users|export\/home)\/[^/]*\//gm,
20
- '/$1/<user>/',
15
+ /(file:\/\/|\/)(Users|user|users|user|usr|u01|var\/users|home|export\/home|Documents and Settings|Profiles)\/[^/]*\//gm,
16
+ '$1$2/<user>/',
21
17
  ],
22
- [/\\(Users|Documents and Settings|Profiles)\\[^/\\]*\\/gm, '\\$1\\<user>\\'],
23
18
  [
24
- /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/gim,
25
- '<email>',
19
+ /(file:\/\/|\\)(Users|user|users|user|usr|u01|var\\users|home|export\\home|Documents and Settings|Profiles)\\[^/]*\\/gm,
20
+ '$1$2\\<user>\\',
21
+ ],
22
+ [
23
+ /(^|[ \t\r\n\v\f])([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]{1,64}@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?){1,500})/gim,
24
+ '$1<email>',
26
25
  ],
27
26
  [
28
27
  /((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])/gm,
@@ -1 +1 @@
1
- {"version":3,"file":"regexes.js","sourceRoot":"","sources":["../src/regexes.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB;QACE,4EAA4E;QAC5E,kBAAkB;KACnB;IAGD,CAAC,0DAA0D,EAAE,eAAe,CAAC;IAC7E;QACE,kEAAkE;QAClE,eAAe;KAChB;IAGD,CAAC,+CAA+C,EAAE,YAAY,CAAC;IAC/D,CAAC,mDAAmD,EAAE,cAAc,CAAC;IACrE,CAAC,mDAAmD,EAAE,YAAY,CAAC;IAGnE,CAAC,uBAAuB,EAAE,aAAa,CAAC;IACxC;QACE,gEAAgE;QAChE,aAAa;KACd;IACD,CAAC,wDAAwD,EAAE,gBAAgB,CAAC;IAG5E;QACE,uJAAuJ;QACvJ,SAAS;KACV;IAGD;QACE,iFAAiF;QACjF,cAAc;KACf;IAGD;QACE,oGAAoG;QACpG,OAAO;KACR;IAGD;QACE,oGAAoG;QACpG,eAAe;KAChB;IAGD,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;CACpC,CAAC"}
1
+ {"version":3,"file":"regexes.js","sourceRoot":"","sources":["../src/regexes.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB;QACE,4EAA4E;QAC5E,kBAAkB;KACnB;IAGD,CAAC,0DAA0D,EAAE,eAAe,CAAC;IAC7E;QACE,kEAAkE;QAClE,eAAe;KAChB;IAGD;QACE,uHAAuH;QACvH,cAAc;KACf;IACD;QACE,uHAAuH;QACvH,gBAAgB;KACjB;IAGD;QACE,+JAA+J;QAC/J,WAAW;KACZ;IAGD;QACE,iFAAiF;QACjF,cAAc;KACf;IAGD;QACE,oGAAoG;QACpG,OAAO;KACR;IAGD;QACE,oGAAoG;QACpG,eAAe;KAChB;IAGD,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;CACpC,CAAC"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "email": "compass@mongodb.com"
14
14
  },
15
15
  "homepage": "https://github.com/mongodb-js/devtools-shared",
16
- "version": "1.1.0",
16
+ "version": "1.1.1",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "https://github.com/mongodb-js/devtools-shared.git"
@@ -66,5 +66,5 @@
66
66
  "sinon": "^9.2.3",
67
67
  "typescript": "^5.0.4"
68
68
  },
69
- "gitHead": "3990ebe9d2c8b646749b5d2767613d10cc221c1e"
69
+ "gitHead": "c88269832d44edcec0e637db242456c2f7975598"
70
70
  }