@tanakayuto/intmax402-core 0.2.4 → 0.2.6

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildWWWAuthenticate = buildWWWAuthenticate;
4
4
  // Remove characters that could break the WWW-Authenticate header format
5
5
  function sanitize(value) {
6
- return value.replace(/["\\r\n]/g, "");
6
+ return value.replace(/["\\]|\r|\n/g, "");
7
7
  }
8
8
  function buildWWWAuthenticate(nonce, config) {
9
9
  let header = `INTMAX402 realm="intmax402", nonce="${nonce}", mode="${config.mode}"`;
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@tanakayuto/intmax402-core",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "clean": "rm -rf dist",
9
+ "typecheck": "tsc --noEmit"
10
+ },
6
11
  "dependencies": {},
7
12
  "devDependencies": {
8
13
  "typescript": "^5.4.0",
@@ -28,10 +33,5 @@
28
33
  "express",
29
34
  "web3",
30
35
  "zk"
31
- ],
32
- "scripts": {
33
- "build": "tsc",
34
- "clean": "rm -rf dist",
35
- "typecheck": "tsc --noEmit"
36
- }
37
- }
36
+ ]
37
+ }