@did-space/constants 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/cjs/index.js CHANGED
@@ -7,7 +7,11 @@ const HEADERS = {
7
7
  // 取值范围 undefined | "2"
8
8
  // (默认)取值为 undefined,表示 url 未使用任何编码方式。
9
9
  // 取值为 2,表示 url 使用了 base64url 编码的方式
10
- X_SIGNATURE_VERSION: "x-signature-version"
10
+ X_SIGNATURE_VERSION: "x-signature-version",
11
+ // 认证方式为 Simple Access Key 的时候,使用标准的 authorization header
12
+ X_AUTHORIZATION: "x-authorization",
13
+ // 认证方式为 Signature Access Key 的时候,使用这个 header 组合
14
+ X_ACCESS_KEY: "x-access-key"
11
15
  };
12
16
  const APP = {
13
17
  // @example: /${spaceDid}/apps/${appDid}
package/dist/es/index.js CHANGED
@@ -5,7 +5,11 @@ const HEADERS = {
5
5
  // 取值范围 undefined | "2"
6
6
  // (默认)取值为 undefined,表示 url 未使用任何编码方式。
7
7
  // 取值为 2,表示 url 使用了 base64url 编码的方式
8
- X_SIGNATURE_VERSION: "x-signature-version"
8
+ X_SIGNATURE_VERSION: "x-signature-version",
9
+ // 认证方式为 Simple Access Key 的时候,使用标准的 authorization header
10
+ X_AUTHORIZATION: "x-authorization",
11
+ // 认证方式为 Signature Access Key 的时候,使用这个 header 组合
12
+ X_ACCESS_KEY: "x-access-key"
9
13
  };
10
14
  const APP = {
11
15
  // @example: /${spaceDid}/apps/${appDid}
package/dist/index.d.mts CHANGED
@@ -3,6 +3,8 @@ declare const DID_OBJECTS = ".did-objects";
3
3
  declare const HEADERS: {
4
4
  readonly X_HASH: "x-hash";
5
5
  readonly X_SIGNATURE_VERSION: "x-signature-version";
6
+ readonly X_AUTHORIZATION: "x-authorization";
7
+ readonly X_ACCESS_KEY: "x-access-key";
6
8
  };
7
9
  declare const APP: {
8
10
  readonly FOLDER_PREFIX: "apps";
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ declare const DID_OBJECTS = ".did-objects";
3
3
  declare const HEADERS: {
4
4
  readonly X_HASH: "x-hash";
5
5
  readonly X_SIGNATURE_VERSION: "x-signature-version";
6
+ readonly X_AUTHORIZATION: "x-authorization";
7
+ readonly X_ACCESS_KEY: "x-access-key";
6
8
  };
7
9
  declare const APP: {
8
10
  readonly FOLDER_PREFIX: "apps";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@did-space/constants",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,5 +45,5 @@
45
45
  "typescript": "~5.5.4",
46
46
  "unbuild": "^2.0.0"
47
47
  },
48
- "gitHead": "5b93f14e6011e4d81663549078127e4b927c5f12"
48
+ "gitHead": "4279570c771d37ecbfce5b05778cbeffe609bf24"
49
49
  }