@ocap/proto 1.28.6 → 1.28.7

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.
@@ -8,7 +8,6 @@
8
8
  * @public
9
9
  */
10
10
  // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
11
  // @ts-nocheck
13
12
 
14
13
  var jspb = require('google-protobuf');
@@ -8,7 +8,6 @@
8
8
  * @public
9
9
  */
10
10
  // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
11
  // @ts-nocheck
13
12
 
14
13
  var jspb = require('google-protobuf');
@@ -8,7 +8,6 @@
8
8
  * @public
9
9
  */
10
10
  // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
11
  // @ts-nocheck
13
12
 
14
13
  var jspb = require('google-protobuf');
package/lib/gen/tx_pb.js CHANGED
@@ -8,7 +8,6 @@
8
8
  * @public
9
9
  */
10
10
  // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
11
  // @ts-nocheck
13
12
 
14
13
  var jspb = require('google-protobuf');
@@ -8,7 +8,6 @@
8
8
  * @public
9
9
  */
10
10
  // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
11
  // @ts-nocheck
13
12
 
14
13
  var jspb = require('google-protobuf');
@@ -8,7 +8,6 @@
8
8
  * @public
9
9
  */
10
10
  // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
11
  // @ts-nocheck
13
12
 
14
13
  var jspb = require('google-protobuf');
package/lib/proto.js CHANGED
@@ -1,5 +1,3 @@
1
- /* eslint-disable import/extensions */
2
- /* eslint-disable prefer-object-spread */
3
1
  // Auto generated code, DO NOT EDIT
4
2
 
5
3
  const enumPb = require('./gen/enum_pb.js');
package/lib/provider.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @fileOverview Contains all static generated javascript files from forge-abi and forge-core-protocols
3
3
  * @module @ocap/proto
4
4
  * @example
5
- * pnpm install @ocap/proto
5
+ * bun add @ocap/proto
6
6
  *
7
7
  * const ocapProto = require('@ocap/proto'); // full version, larger bundle
8
8
  * const { enums, fromTypeUrl, toTypeUrl } = ocapProto;
@@ -37,7 +37,6 @@ module.exports = function createProvider(proto, json, urls = {}) {
37
37
  // extract spec
38
38
  const compactSpec = (object) => {
39
39
  if (object.nested) {
40
- // eslint-disable-next-line no-param-reassign
41
40
  object = object.nested;
42
41
  }
43
42
 
@@ -72,7 +71,6 @@ module.exports = function createProvider(proto, json, urls = {}) {
72
71
  return obj;
73
72
  }, {});
74
73
 
75
- // eslint-disable-next-line no-use-before-define
76
74
  const typeUrls = Object.assign(createTypeUrls(abi), urls || {});
77
75
 
78
76
  // extract transactions and stakes
@@ -81,7 +79,6 @@ module.exports = function createProvider(proto, json, urls = {}) {
81
79
  );
82
80
  enums.SupportedStakes = Object.keys(types).filter((x) => stakeTypePattern.test(x));
83
81
 
84
- // eslint-disable-next-line no-shadow
85
82
  function createTypeUrls(abi) {
86
83
  return Object.keys(abi).reduce((obj, type) => {
87
84
  let typeUrl = type;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/proto",
3
3
  "description": "Static modules generated from forge-sdk protobuf files",
4
- "version": "1.28.6",
4
+ "version": "1.28.7",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -16,7 +16,6 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@wangshijun/ts-protoc-gen": "^0.16.2",
19
- "jest": "^29.7.0",
20
19
  "prettier": "^2.7.1"
21
20
  },
22
21
  "homepage": "https://github.com/ArcBlock/blockchain/tree/master/core/proto",
@@ -35,18 +34,18 @@
35
34
  "type": "git",
36
35
  "url": "https://github.com/ArcBlock/blockchain/tree/master/core/proto"
37
36
  },
38
- "dependencies": {
39
- "debug": "^4.3.6",
40
- "lodash": "^4.17.21"
41
- },
42
- "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
43
37
  "scripts": {
44
38
  "build": "make build && make build-deps",
45
- "lint": "eslint tests lib/*.js",
46
- "lint:fix": "eslint --fix tests lib/*.js",
39
+ "lint": "biome check",
40
+ "lint:fix": "biome check --write",
47
41
  "gen-proto": "node tools/gen-proto.js",
48
42
  "gen-dts": "j2d lib/index.js && node tools/gen-dts.js && bash tools/patch-dts.sh && prettier --write lib/*.d.ts",
49
- "test": "jest --forceExit --detectOpenHandles",
43
+ "test": "bun test",
50
44
  "coverage": "npm run test -- --coverage"
51
- }
52
- }
45
+ },
46
+ "dependencies": {
47
+ "debug": "^4.3.6",
48
+ "lodash": "^4.17.21"
49
+ },
50
+ "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
51
+ }
package/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2018-2025 ArcBlock
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.