@ocap/state 1.19.14 → 1.19.16

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2018-2019 ArcBlock
1
+ Copyright 2018-2025 ArcBlock
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -11,8 +11,8 @@ const { create: createStateContext, update: updateStateContext } = require('../c
11
11
 
12
12
  const schema = Joi.object({
13
13
  address: Joi.DID().prefix().required(),
14
- pk: Joi.string().allow(''),
15
- issuer: Joi.DID().prefix().allow(''),
14
+ pk: Joi.string().allow(null).allow(''),
15
+ issuer: Joi.DID().prefix().allow(null).allow(''),
16
16
  moniker: Joi.string()
17
17
  .regex(/^[a-zA-Z0-9][-a-zA-Z0-9_]{2,128}$/)
18
18
  .allow(''),
@@ -92,4 +92,4 @@ const validate = (state) => {
92
92
  const isMigrated = (state) => (state.migratedTo || []).length > 0;
93
93
  const ensureChecksumAddress = (address) => (isEthereumDid(address) ? toChecksumAddress(address) : address);
94
94
 
95
- module.exports = { create, update, updateOrCreate, validate, isMigrated, ensureChecksumAddress };
95
+ module.exports = { create, update, updateOrCreate, validate, isMigrated, ensureChecksumAddress, schema };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.19.14",
6
+ "version": "1.19.16",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,13 +18,13 @@
18
18
  "coverage": "start-server-and-test start http://127.0.0.1:4001 test:ci"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did": "1.19.14",
22
- "@arcblock/validator": "1.19.14",
23
- "@ocap/contract": "1.19.14",
24
- "@ocap/mcrypto": "1.19.14",
25
- "@ocap/message": "1.19.14",
26
- "@ocap/util": "1.19.14",
27
- "@ocap/wallet": "1.19.14",
21
+ "@arcblock/did": "1.19.16",
22
+ "@arcblock/validator": "1.19.16",
23
+ "@ocap/contract": "1.19.16",
24
+ "@ocap/mcrypto": "1.19.16",
25
+ "@ocap/message": "1.19.16",
26
+ "@ocap/util": "1.19.16",
27
+ "@ocap/wallet": "1.19.16",
28
28
  "bloom-filters": "^1.3.9",
29
29
  "lodash": "^4.17.21"
30
30
  },
@@ -35,5 +35,5 @@
35
35
  "keywords": [],
36
36
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
37
37
  "license": "MIT",
38
- "gitHead": "97e9e70872b2b6c46bdda5d4f4bce8a890d4bd63"
38
+ "gitHead": "9c3c349e48fc3c5a63aba6068ba5d31cc46d81c9"
39
39
  }