@arcblock/did 1.28.2 → 1.28.3

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.
@@ -1,5 +1,5 @@
1
- import { DIDType, DIDTypeArg, DIDTypeShortcut, DIDTypeStr, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, DidType, fromTypeInfo, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr } from "./type.js";
2
- import { DID_PREFIX, toStrictHex } from "./util.js";
1
+ import { DIDType, DIDTypeArg, DIDTypeShortcut, DIDTypeStr, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, DidType, fromTypeInfo, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr } from "./type.mjs";
2
+ import { DID_PREFIX, toStrictHex } from "./util.mjs";
3
3
  import { types } from "@ocap/mcrypto";
4
4
  import { BytesType, toAddress, toDid } from "@ocap/util";
5
5
 
@@ -1,5 +1,5 @@
1
- import { DID_PREFIX, toBytes, toStrictHex } from "./util.js";
2
- import { DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, DidType, fromTypeInfo, isEthereumDid, isEthereumType, toChecksumAddress, toTypeInfo, toTypeInfoStr } from "./type.js";
1
+ import { DID_PREFIX, toBytes, toStrictHex } from "./util.mjs";
2
+ import { DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, DidType, fromTypeInfo, isEthereumDid, isEthereumType, toChecksumAddress, toTypeInfo, toTypeInfoStr } from "./type.mjs";
3
3
  import { getHasher, getSigner, types } from "@ocap/mcrypto";
4
4
  import { stripHexPrefix, toAddress, toBase58, toDid } from "@ocap/util";
5
5
 
@@ -1,4 +1,4 @@
1
- import { toBits, toBytes, toStrictHex } from "./util.js";
1
+ import { toBits, toBytes, toStrictHex } from "./util.mjs";
2
2
  import { Hasher, types } from "@ocap/mcrypto";
3
3
  import { BN, isHex, numberToHex, stripHexPrefix, toAddress } from "@ocap/util";
4
4
  import upperFirst from "lodash/upperFirst.js";
@@ -1,6 +1,6 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
2
- const require_util = require('./util.js');
3
- const require_type = require('./type.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
+ const require_util = require('./util.cjs');
3
+ const require_type = require('./type.cjs');
4
4
  let _ocap_mcrypto = require("@ocap/mcrypto");
5
5
  let _ocap_util = require("@ocap/util");
6
6
 
@@ -1,5 +1,5 @@
1
- import { DIDType, DIDTypeArg, DIDTypeShortcut, DIDTypeStr, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, DidType, fromTypeInfo, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr } from "./type.js";
2
- import { DID_PREFIX, toStrictHex } from "./util.js";
1
+ import { DIDType, DIDTypeArg, DIDTypeShortcut, DIDTypeStr, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, DidType, fromTypeInfo, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr } from "./type.cjs";
2
+ import { DID_PREFIX, toStrictHex } from "./util.cjs";
3
3
  import { types } from "@ocap/mcrypto";
4
4
  import { BytesType, toAddress, toDid } from "@ocap/util";
5
5
 
@@ -1,5 +1,5 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
2
- const require_util = require('./util.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
+ const require_util = require('./util.cjs');
3
3
  let _ocap_mcrypto = require("@ocap/mcrypto");
4
4
  let _ocap_util = require("@ocap/util");
5
5
  let lodash_upperFirst = require("lodash/upperFirst");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let _ocap_util = require("@ocap/util");
3
3
  let lodash_padStart = require("lodash/padStart");
4
4
  lodash_padStart = require_rolldown_runtime.__toESM(lodash_padStart);
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@arcblock/did",
3
- "version": "1.28.2",
3
+ "version": "1.28.3",
4
+ "type": "module",
4
5
  "description": "Javascript lib to work with ArcBlock DID",
5
6
  "keywords": [
6
7
  "arcblock",
@@ -22,24 +23,24 @@
22
23
  "homepage": "https://www.arcblock.io/docs/blockchain-utils",
23
24
  "license": "Apache-2.0",
24
25
  "sideEffects": false,
25
- "main": "./lib/index.js",
26
- "module": "./esm/index.js",
27
- "types": "./esm/index.d.ts",
26
+ "main": "./lib/index.cjs",
27
+ "module": "./esm/index.mjs",
28
+ "types": "./esm/index.d.mts",
28
29
  "exports": {
29
30
  ".": {
30
- "types": "./esm/index.d.ts",
31
- "import": "./esm/index.js",
32
- "default": "./lib/index.js"
31
+ "types": "./esm/index.d.mts",
32
+ "import": "./esm/index.mjs",
33
+ "default": "./lib/index.cjs"
33
34
  },
34
35
  "./lib/*.js": {
35
- "types": "./lib/*",
36
- "import": "./esm/*.js",
37
- "default": "./lib/*.js"
36
+ "types": "./esm/*.d.mts",
37
+ "import": "./esm/*.mjs",
38
+ "default": "./lib/*.cjs"
38
39
  },
39
40
  "./lib/*": {
40
- "types": "./lib/*",
41
- "import": "./esm/*.js",
42
- "default": "./lib/*.js"
41
+ "types": "./esm/*.d.mts",
42
+ "import": "./esm/*.mjs",
43
+ "default": "./lib/*.cjs"
43
44
  }
44
45
  },
45
46
  "files": [
@@ -68,8 +69,8 @@
68
69
  "bn.js": "^5.2.1",
69
70
  "debug": "^4.3.6",
70
71
  "lodash": "^4.17.21",
71
- "@ocap/mcrypto": "1.28.2",
72
- "@ocap/util": "1.28.2"
72
+ "@ocap/mcrypto": "1.28.3",
73
+ "@ocap/util": "1.28.3"
73
74
  },
74
75
  "scripts": {
75
76
  "lint": "eslint src tests",
File without changes
File without changes
File without changes
File without changes
File without changes