@arcblock/did 1.18.32 → 1.18.33

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/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { types } from '@ocap/mcrypto';
2
2
  import { toAddress, toDid, BytesType } from '@ocap/util';
3
3
  import { DidType, DIDType, DIDTypeShortcut, DIDTypeStr, DIDTypeArg, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, fromTypeInfo, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr } from './type';
4
- import { toStrictHex } from './util';
4
+ import { DID_PREFIX, toStrictHex } from './util';
5
5
  /**
6
6
  * Gen DID from private key and type config
7
7
  *
@@ -54,4 +54,4 @@ declare const isFromPublicKey: (did: string, pk: BytesType) => boolean;
54
54
  * @returns {boolean}
55
55
  */
56
56
  declare const isValid: (did: string) => boolean;
57
- export { DIDType, DIDTypeStr, DIDTypeArg, DIDTypeShortcut, types, toStrictHex, fromSecretKey, fromPublicKey, fromPublicKeyHash, fromHash, toAddress, toDid, isFromPublicKey, isValid, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr, fromTypeInfo, DidType, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, };
57
+ export { DIDType, DIDTypeStr, DIDTypeArg, DIDTypeShortcut, types, toStrictHex, fromSecretKey, fromPublicKey, fromPublicKeyHash, fromHash, toAddress, toDid, isFromPublicKey, isValid, isEthereumDid, isEthereumType, toTypeInfo, toTypeInfoStr, fromTypeInfo, DidType, DID_PREFIX, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, };
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DID_TYPE_ETHEREUM = exports.DID_TYPE_ARCBLOCK = exports.DidType = exports.fromTypeInfo = exports.toTypeInfoStr = exports.toTypeInfo = exports.isEthereumType = exports.isEthereumDid = exports.isValid = exports.isFromPublicKey = exports.toDid = exports.toAddress = exports.fromHash = exports.fromPublicKeyHash = exports.fromPublicKey = exports.fromSecretKey = exports.toStrictHex = exports.types = void 0;
3
+ exports.DID_TYPE_ETHEREUM = exports.DID_TYPE_ARCBLOCK = exports.DID_PREFIX = exports.DidType = exports.fromTypeInfo = exports.toTypeInfoStr = exports.toTypeInfo = exports.isEthereumType = exports.isEthereumDid = exports.isValid = exports.isFromPublicKey = exports.toDid = exports.toAddress = exports.fromHash = exports.fromPublicKeyHash = exports.fromPublicKey = exports.fromSecretKey = exports.toStrictHex = exports.types = void 0;
4
4
  /* eslint-disable @typescript-eslint/no-use-before-define */
5
5
  /* eslint-disable @typescript-eslint/ban-ts-comment */
6
6
  const mcrypto_1 = require("@ocap/mcrypto");
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "isEthereumType", { enumerable: true, get: functi
18
18
  Object.defineProperty(exports, "toTypeInfo", { enumerable: true, get: function () { return type_1.toTypeInfo; } });
19
19
  Object.defineProperty(exports, "toTypeInfoStr", { enumerable: true, get: function () { return type_1.toTypeInfoStr; } });
20
20
  const util_2 = require("./util");
21
+ Object.defineProperty(exports, "DID_PREFIX", { enumerable: true, get: function () { return util_2.DID_PREFIX; } });
21
22
  Object.defineProperty(exports, "toStrictHex", { enumerable: true, get: function () { return util_2.toStrictHex; } });
22
23
  /**
23
24
  * Gen DID from private key and type config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/did",
3
- "version": "1.18.32",
3
+ "version": "1.18.33",
4
4
  "description": "Javascript lib to work with ArcBlock DID",
5
5
  "keywords": [
6
6
  "arcblock",
@@ -53,12 +53,12 @@
53
53
  "url": "https://github.com/ArcBlock/asset-chain/issues"
54
54
  },
55
55
  "dependencies": {
56
- "@ocap/mcrypto": "1.18.32",
57
- "@ocap/util": "1.18.32",
56
+ "@ocap/mcrypto": "1.18.33",
57
+ "@ocap/util": "1.18.33",
58
58
  "bn.js": "^5.2.1",
59
59
  "debug": "^4.3.4",
60
60
  "lodash": "^4.17.21",
61
61
  "type-fest": "^3.1.0"
62
62
  },
63
- "gitHead": "44a7e8ee3e89535a4e18fbbc2ad6ff408c8e2474"
63
+ "gitHead": "0d03089c6651d92a3451e9bbbc865c18c2f5d8ad"
64
64
  }