@arcblock/did 1.18.51 → 1.18.53

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.
Files changed (2) hide show
  1. package/lib/type.js +2 -2
  2. package/package.json +4 -4
package/lib/type.js CHANGED
@@ -117,7 +117,7 @@ function DidType(type = {}) {
117
117
  input = DID_TYPE_ETHEREUM;
118
118
  }
119
119
  else {
120
- input = Object.assign(Object.assign({}, DID_TYPE_ARCBLOCK), type);
120
+ input = { ...DID_TYPE_ARCBLOCK, ...type };
121
121
  }
122
122
  const { role, pk, hash, address } = input;
123
123
  Object.keys(input).forEach((x) => {
@@ -215,7 +215,7 @@ const toTypeInfo = (did) => {
215
215
  });
216
216
  return type;
217
217
  }
218
- catch (_a) {
218
+ catch {
219
219
  return type;
220
220
  }
221
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/did",
3
- "version": "1.18.51",
3
+ "version": "1.18.53",
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.51",
57
- "@ocap/util": "1.18.51",
56
+ "@ocap/mcrypto": "1.18.53",
57
+ "@ocap/util": "1.18.53",
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": "cbe5db2a6951ade1e813990421ec4c1f757eeaf8"
63
+ "gitHead": "aca89e1a332437703b6019332d75aed4a0ea579f"
64
64
  }