@hashgraphonline/standards-sdk 0.1.136-feat-encrypted-chat.canary.1c46218.30 → 0.1.137
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/dist/es/standards-sdk.es103.js +1 -1
- package/dist/es/standards-sdk.es104.js +5 -5
- package/dist/es/standards-sdk.es114.js +1 -1
- package/dist/es/standards-sdk.es115.js +1 -1
- package/dist/es/standards-sdk.es116.js +5 -5
- package/dist/es/standards-sdk.es121.js +1 -1
- package/dist/es/standards-sdk.es131.js +17 -694
- package/dist/es/standards-sdk.es131.js.map +1 -1
- package/dist/es/standards-sdk.es133.js +694 -56
- package/dist/es/standards-sdk.es133.js.map +1 -1
- package/dist/es/standards-sdk.es134.js +161 -53
- package/dist/es/standards-sdk.es134.js.map +1 -1
- package/dist/es/standards-sdk.es135.js +318 -13
- package/dist/es/standards-sdk.es135.js.map +1 -1
- package/dist/es/standards-sdk.es136.js +294 -120
- package/dist/es/standards-sdk.es136.js.map +1 -1
- package/dist/es/standards-sdk.es137.js +322 -191
- package/dist/es/standards-sdk.es137.js.map +1 -1
- package/dist/es/standards-sdk.es138.js +279 -294
- package/dist/es/standards-sdk.es138.js.map +1 -1
- package/dist/es/standards-sdk.es139.js +63 -440
- package/dist/es/standards-sdk.es139.js.map +1 -1
- package/dist/es/standards-sdk.es140.js +55 -330
- package/dist/es/standards-sdk.es140.js.map +1 -1
- package/dist/es/standards-sdk.es141.js +50 -62
- package/dist/es/standards-sdk.es141.js.map +1 -1
- package/dist/es/standards-sdk.es17.js +1 -1
- package/dist/es/standards-sdk.es19.js +1 -1
- package/dist/es/standards-sdk.es20.js +1 -1
- package/dist/es/standards-sdk.es28.js +1 -1
- package/dist/es/standards-sdk.es36.js +1 -1
- package/dist/es/standards-sdk.es57.js +1 -1
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es61.js +1 -1
- package/dist/es/standards-sdk.es63.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +1 -1
- package/dist/es/standards-sdk.es78.js +1 -1
- package/package.json +59 -61
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es141.js","sources":["../../src/utils/
|
|
1
|
+
{"version":3,"file":"standards-sdk.es141.js","sources":["../../src/utils/dynamic-import.ts"],"sourcesContent":["import { isBrowser } from './is-browser';\n\nlet nodeRequire: NodeRequire | null | undefined;\n\nfunction isModuleNotFound(specifier: string, error: unknown): boolean {\n if (!error || typeof error !== 'object') {\n return false;\n }\n const code = Reflect.get(error, 'code');\n const message = Reflect.get(error, 'message');\n const messageText = typeof message === 'string' ? message : '';\n\n if (typeof code === 'string' && code.includes('MODULE_NOT_FOUND')) {\n return messageText.includes(specifier);\n }\n\n if (messageText) {\n const lowered = messageText.toLowerCase();\n if (\n lowered.includes('cannot find module') ||\n lowered.includes('module not found') ||\n lowered.includes('cannot find package')\n ) {\n return lowered.includes(specifier.toLowerCase());\n }\n }\n\n return false;\n}\n\nasync function resolveNodeRequire(): Promise<NodeRequire | null> {\n if (nodeRequire !== undefined) {\n return nodeRequire;\n }\n\n if (isBrowser) {\n nodeRequire = null;\n return nodeRequire;\n }\n\n try {\n const globalObject =\n typeof global !== 'undefined'\n ? (global as typeof globalThis)\n : globalThis;\n const req =\n globalObject.process?.mainModule?.require ??\n (globalObject as { require?: NodeRequire }).require;\n\n nodeRequire =\n typeof req === 'function' &&\n typeof (req as NodeRequire).resolve === 'function'\n ? (req as NodeRequire)\n : null;\n } catch {\n nodeRequire = null;\n }\n\n return nodeRequire;\n}\n\nasync function dynamicImport<T>(specifier: string): Promise<T | null> {\n try {\n return (await import(specifier)) as T;\n } catch (error) {\n if (isModuleNotFound(specifier, error)) {\n return null;\n }\n throw error as Error;\n }\n}\n\nexport async function optionalImport<T>(specifier: string): Promise<T | null> {\n if (isBrowser) {\n return dynamicImport<T>(specifier);\n }\n\n const requireFn = await resolveNodeRequire();\n if (requireFn) {\n try {\n return requireFn(specifier) as T;\n } catch (error) {\n if (!isModuleNotFound(specifier, error)) {\n throw error as Error;\n }\n }\n }\n\n return dynamicImport<T>(specifier);\n}\n"],"names":[],"mappings":";AAEA,IAAI;AAEJ,SAAS,iBAAiB,WAAmB,OAAyB;AACpE,MAAI,CAAC,SAAS,OAAO,UAAU,UAAU;AACvC,WAAO;AAAA,EACT;AACA,QAAM,OAAO,QAAQ,IAAI,OAAO,MAAM;AACtC,QAAM,UAAU,QAAQ,IAAI,OAAO,SAAS;AAC5C,QAAM,cAAc,OAAO,YAAY,WAAW,UAAU;AAE5D,MAAI,OAAO,SAAS,YAAY,KAAK,SAAS,kBAAkB,GAAG;AACjE,WAAO,YAAY,SAAS,SAAS;AAAA,EACvC;AAEA,MAAI,aAAa;AACf,UAAM,UAAU,YAAY,YAAA;AAC5B,QACE,QAAQ,SAAS,oBAAoB,KACrC,QAAQ,SAAS,kBAAkB,KACnC,QAAQ,SAAS,qBAAqB,GACtC;AACA,aAAO,QAAQ,SAAS,UAAU,YAAA,CAAa;AAAA,IACjD;AAAA,EACF;AAEA,SAAO;AACT;AAEA,eAAe,qBAAkD;AAC/D,MAAI,gBAAgB,QAAW;AAC7B,WAAO;AAAA,EACT;AAEA,MAAI,WAAW;AACb,kBAAc;AACd,WAAO;AAAA,EACT;AAEA,MAAI;AACF,UAAM,eACJ,OAAO,WAAW,cACb,SACD;AACN,UAAM,MACJ,aAAa,SAAS,YAAY,WACjC,aAA2C;AAE9C,kBACE,OAAO,QAAQ,cACf,OAAQ,IAAoB,YAAY,aACnC,MACD;AAAA,EACR,QAAQ;AACN,kBAAc;AAAA,EAChB;AAEA,SAAO;AACT;AAEA,eAAe,cAAiB,WAAsC;AACpE,MAAI;AACF,WAAQ,MAAM,OAAO;AAAA,EACvB,SAAS,OAAO;AACd,QAAI,iBAAiB,WAAW,KAAK,GAAG;AACtC,aAAO;AAAA,IACT;AACA,UAAM;AAAA,EACR;AACF;AAEA,eAAsB,eAAkB,WAAsC;AAC5E,MAAI,WAAW;AACb,WAAO,cAAiB,SAAS;AAAA,EACnC;AAEA,QAAM,YAAY,MAAM,mBAAA;AACxB,MAAI,WAAW;AACb,QAAI;AACF,aAAO,UAAU,SAAS;AAAA,IAC5B,SAAS,OAAO;AACd,UAAI,CAAC,iBAAiB,WAAW,KAAK,GAAG;AACvC,cAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,SAAO,cAAiB,SAAS;AACnC;"}
|
|
@@ -13,7 +13,7 @@ import "viem/accounts";
|
|
|
13
13
|
import "viem/chains";
|
|
14
14
|
import "x402-axios";
|
|
15
15
|
import "x402/types";
|
|
16
|
-
import "./standards-sdk.
|
|
16
|
+
import "./standards-sdk.es133.js";
|
|
17
17
|
import "zod";
|
|
18
18
|
import { buildHcs10SubmitConnectionRequestTx, buildHcs10OutboundConnectionRequestRecordTx, buildHcs10OutboundConnectionCreatedRecordTx } from "./standards-sdk.es23.js";
|
|
19
19
|
import { HRLResolver } from "./standards-sdk.es103.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCryptoAdapter } from "./standards-sdk.es113.js";
|
|
2
|
-
import { base58Encode } from "./standards-sdk.
|
|
2
|
+
import { base58Encode } from "./standards-sdk.es140.js";
|
|
3
3
|
import { canonicalizeAgentData } from "./standards-sdk.es56.js";
|
|
4
4
|
function encodeMultibaseB58btc(input) {
|
|
5
5
|
const bytes = Buffer.from(input, "utf8");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HieroDidResolver } from "./standards-sdk.es60.js";
|
|
2
2
|
import { parseHcs14Did } from "./standards-sdk.es57.js";
|
|
3
|
-
import { multibaseB58btcDecode } from "./standards-sdk.
|
|
3
|
+
import { multibaseB58btcDecode } from "./standards-sdk.es140.js";
|
|
4
4
|
class ResolverRegistry {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.resolvers = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HCS5BaseClient } from "./standards-sdk.
|
|
1
|
+
import { HCS5BaseClient } from "./standards-sdk.es131.js";
|
|
2
2
|
import { buildHcs1Hrl } from "./standards-sdk.es64.js";
|
|
3
3
|
import { PrivateKey } from "@hashgraph/sdk";
|
|
4
4
|
import { inscribeWithSigner } from "./standards-sdk.es118.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HCS5BaseClient } from "./standards-sdk.
|
|
1
|
+
import { HCS5BaseClient } from "./standards-sdk.es131.js";
|
|
2
2
|
import { buildHcs1Hrl } from "./standards-sdk.es64.js";
|
|
3
3
|
import { AccountId } from "@hashgraph/sdk";
|
|
4
4
|
import { inscribe } from "./standards-sdk.es118.js";
|
|
@@ -10,7 +10,7 @@ import "viem/accounts";
|
|
|
10
10
|
import "viem/chains";
|
|
11
11
|
import "x402-axios";
|
|
12
12
|
import "x402/types";
|
|
13
|
-
import "./standards-sdk.
|
|
13
|
+
import "./standards-sdk.es133.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import "@hashgraph/sdk";
|
|
16
16
|
import { HCS20_CONSTANTS, HCS20MessageSchema } from "./standards-sdk.es73.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.137",
|
|
4
4
|
"description": "The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -45,64 +45,6 @@
|
|
|
45
45
|
"default": "./dist/es/standards-sdk.es.js"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"scripts": {
|
|
49
|
-
"clean": "rimraf dist",
|
|
50
|
-
"build:es": "BUILD_FORMAT=es vite build",
|
|
51
|
-
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
52
|
-
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
53
|
-
"build": "npm run clean && npm run build:es && npm run build:cjs",
|
|
54
|
-
"cli": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli start",
|
|
55
|
-
"cli:build": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli build",
|
|
56
|
-
"cli:install": "pnpm --dir cli/standards-cli install",
|
|
57
|
-
"prepublishOnly": "npm run build",
|
|
58
|
-
"release": "npm publish --access public",
|
|
59
|
-
"release:canary": "npm run prepublishOnly && npm publish --tag canary --access public",
|
|
60
|
-
"version:canary": "npm version prerelease --preid canary --no-git-tag-version",
|
|
61
|
-
"publish:canary": "npm run version:canary && npm run release:canary",
|
|
62
|
-
"demo:inscribe": "tsx demo/inscribe-demo.ts",
|
|
63
|
-
"demo:hcs-10": "tsx demo/hcs-10/index.ts",
|
|
64
|
-
"demo:fee": "tsx demo/hcs-10/fee-demo.ts",
|
|
65
|
-
"demo:transact": "tsx demo/hcs-10/transact-demo.ts",
|
|
66
|
-
"demo:transact-agent": "tsx demo/hcs-10/transact-agent.ts",
|
|
67
|
-
"demo:polling-agent": "tsx demo/hcs-10/polling-agent.ts",
|
|
68
|
-
"demo:connection-manager": "tsx demo/hcs-10/connection-manager.ts",
|
|
69
|
-
"demo:hrl-content": "tsx demo/hrl-content-demo.ts",
|
|
70
|
-
"demo:hcs-14:issue-resolve": "tsx demo/hcs-14/issue-and-resolve-did.ts",
|
|
71
|
-
"demo:hcs12": "tsx demo/hcs-12/hcs12-demo.ts",
|
|
72
|
-
"demo:mcp-chat": "tsx demo/hcs-10/create-mcp.ts",
|
|
73
|
-
"demo:hcs-2:create": "tsx demo/hcs-2/create-registry.ts",
|
|
74
|
-
"demo:hcs-6": "tsx demo/hcs-6/dynamic-hashinal-demo.ts",
|
|
75
|
-
"demo:hcs-6:create-registry": "tsx demo/hcs-6/create-registry.ts",
|
|
76
|
-
"demo:hcs-6:query-registry": "tsx demo/hcs-6/query-registry.ts",
|
|
77
|
-
"demo:hcs-6:mint": "tsx demo/hcs-6/mint-hashinal.ts",
|
|
78
|
-
"demo:hcs-17": "tsx demo/hcs-17/state-hash-demo.ts",
|
|
79
|
-
"demo:hcs-7:create": "tsx demo/hcs-7/create-hcs-7-topic.ts",
|
|
80
|
-
"demo:hcs-15": "tsx demo/hcs-15/petal-accounts-demo.ts",
|
|
81
|
-
"demo:hcs-10:create-registry": "tsx demo/hcs-10/create-registry.ts",
|
|
82
|
-
"demo:hcs-16:create-flora": "tsx demo/hcs-16/create-flora-demo.ts",
|
|
83
|
-
"demo:hcs-11:profile": "tsx demo/hcs-11/inscribe-profile-with-uaid.ts",
|
|
84
|
-
"demo:hcs-11:resolve-uaid": "tsx demo/hcs-11/resolve-profile-uaid.ts",
|
|
85
|
-
"demo:hcs-20:deploy-and-mint": "tsx demo/hcs-20/deploy-and-mint.ts",
|
|
86
|
-
"demo:hcs-20:deploy-points": "tsx demo/hcs-20/deploy-points.ts",
|
|
87
|
-
"demo:hcs-20:mint-transfer-burn": "tsx demo/hcs-20/mint-transfer-burn.ts",
|
|
88
|
-
"demo:hcs-6:browser": "pnpm run build && pnpm --dir demo/hcs-6/browser i && pnpm --dir demo/hcs-6/browser dev",
|
|
89
|
-
"demo:hcs-5": "tsx demo/hcs-5/mint-hashinal.ts",
|
|
90
|
-
"demo:registry-broker": "tsx demo/registry-broker/registry-broker-demo.ts",
|
|
91
|
-
"demo:registry-broker-history": "tsx demo/registry-broker/registry-broker-history-demo.ts",
|
|
92
|
-
"demo:registry-broker-erc8004": "tsx demo/registry-broker/registry-broker-erc8004-demo.ts",
|
|
93
|
-
"demo:registry-broker-agentverse": "tsx demo/registry-broker/registry-broker-agentverse-demo.ts",
|
|
94
|
-
"demo:registry-broker-x402": "tsx demo/registry-broker/registry-broker-x402-demo.ts",
|
|
95
|
-
"demo:registry-broker-erc8004-x402": "tsx demo/registry-broker/registry-broker-erc8004-x402-demo.ts",
|
|
96
|
-
"demo:registry-broker-x402-topup": "tsx demo/registry-broker/registry-broker-x402-topup.ts",
|
|
97
|
-
"watch": "nodemon --watch src --ext ts,tsx --exec \"npm run build && yalc push\"",
|
|
98
|
-
"test": "jest",
|
|
99
|
-
"test:unit-list": "jest --listTests --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
100
|
-
"test:unit-fast": "jest --coverage --runInBand --detectOpenHandles --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
101
|
-
"lint": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
102
|
-
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
103
|
-
"format": "npm run lint:fix",
|
|
104
|
-
"format:check": "npm run lint"
|
|
105
|
-
},
|
|
106
48
|
"devDependencies": {
|
|
107
49
|
"@hashgraphonline/conversational-agent": "0.2.104",
|
|
108
50
|
"@swc/jest": "^0.2.39",
|
|
@@ -163,5 +105,61 @@
|
|
|
163
105
|
"@hashgraphonline/standards-sdk": "0.1.132",
|
|
164
106
|
"@hashgraph/sdk": "^2.77.0"
|
|
165
107
|
},
|
|
166
|
-
"
|
|
167
|
-
|
|
108
|
+
"scripts": {
|
|
109
|
+
"clean": "rimraf dist",
|
|
110
|
+
"build:es": "BUILD_FORMAT=es vite build",
|
|
111
|
+
"build:umd": "BUILD_FORMAT=umd vite build",
|
|
112
|
+
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
113
|
+
"build": "npm run clean && npm run build:es && npm run build:cjs",
|
|
114
|
+
"cli": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli start",
|
|
115
|
+
"cli:build": "([ -d cli/standards-cli/node_modules ] || pnpm --dir cli/standards-cli install) && pnpm --dir cli/standards-cli build",
|
|
116
|
+
"cli:install": "pnpm --dir cli/standards-cli install",
|
|
117
|
+
"release": "npm publish --access public",
|
|
118
|
+
"release:canary": "npm run prepublishOnly && npm publish --tag canary --access public",
|
|
119
|
+
"version:canary": "npm version prerelease --preid canary --no-git-tag-version",
|
|
120
|
+
"publish:canary": "npm run version:canary && npm run release:canary",
|
|
121
|
+
"demo:inscribe": "tsx demo/inscribe-demo.ts",
|
|
122
|
+
"demo:hcs-10": "tsx demo/hcs-10/index.ts",
|
|
123
|
+
"demo:fee": "tsx demo/hcs-10/fee-demo.ts",
|
|
124
|
+
"demo:transact": "tsx demo/hcs-10/transact-demo.ts",
|
|
125
|
+
"demo:transact-agent": "tsx demo/hcs-10/transact-agent.ts",
|
|
126
|
+
"demo:polling-agent": "tsx demo/hcs-10/polling-agent.ts",
|
|
127
|
+
"demo:connection-manager": "tsx demo/hcs-10/connection-manager.ts",
|
|
128
|
+
"demo:hrl-content": "tsx demo/hrl-content-demo.ts",
|
|
129
|
+
"demo:hcs-14:issue-resolve": "tsx demo/hcs-14/issue-and-resolve-did.ts",
|
|
130
|
+
"demo:hcs12": "tsx demo/hcs-12/hcs12-demo.ts",
|
|
131
|
+
"demo:mcp-chat": "tsx demo/hcs-10/create-mcp.ts",
|
|
132
|
+
"demo:hcs-2:create": "tsx demo/hcs-2/create-registry.ts",
|
|
133
|
+
"demo:hcs-6": "tsx demo/hcs-6/dynamic-hashinal-demo.ts",
|
|
134
|
+
"demo:hcs-6:create-registry": "tsx demo/hcs-6/create-registry.ts",
|
|
135
|
+
"demo:hcs-6:query-registry": "tsx demo/hcs-6/query-registry.ts",
|
|
136
|
+
"demo:hcs-6:mint": "tsx demo/hcs-6/mint-hashinal.ts",
|
|
137
|
+
"demo:hcs-17": "tsx demo/hcs-17/state-hash-demo.ts",
|
|
138
|
+
"demo:hcs-7:create": "tsx demo/hcs-7/create-hcs-7-topic.ts",
|
|
139
|
+
"demo:hcs-15": "tsx demo/hcs-15/petal-accounts-demo.ts",
|
|
140
|
+
"demo:hcs-10:create-registry": "tsx demo/hcs-10/create-registry.ts",
|
|
141
|
+
"demo:hcs-16:create-flora": "tsx demo/hcs-16/create-flora-demo.ts",
|
|
142
|
+
"demo:hcs-11:profile": "tsx demo/hcs-11/inscribe-profile-with-uaid.ts",
|
|
143
|
+
"demo:hcs-11:resolve-uaid": "tsx demo/hcs-11/resolve-profile-uaid.ts",
|
|
144
|
+
"demo:hcs-20:deploy-and-mint": "tsx demo/hcs-20/deploy-and-mint.ts",
|
|
145
|
+
"demo:hcs-20:deploy-points": "tsx demo/hcs-20/deploy-points.ts",
|
|
146
|
+
"demo:hcs-20:mint-transfer-burn": "tsx demo/hcs-20/mint-transfer-burn.ts",
|
|
147
|
+
"demo:hcs-6:browser": "pnpm run build && pnpm --dir demo/hcs-6/browser i && pnpm --dir demo/hcs-6/browser dev",
|
|
148
|
+
"demo:hcs-5": "tsx demo/hcs-5/mint-hashinal.ts",
|
|
149
|
+
"demo:registry-broker": "tsx demo/registry-broker/registry-broker-demo.ts",
|
|
150
|
+
"demo:registry-broker-history": "tsx demo/registry-broker/registry-broker-history-demo.ts",
|
|
151
|
+
"demo:registry-broker-erc8004": "tsx demo/registry-broker/registry-broker-erc8004-demo.ts",
|
|
152
|
+
"demo:registry-broker-agentverse": "tsx demo/registry-broker/registry-broker-agentverse-demo.ts",
|
|
153
|
+
"demo:registry-broker-x402": "tsx demo/registry-broker/registry-broker-x402-demo.ts",
|
|
154
|
+
"demo:registry-broker-erc8004-x402": "tsx demo/registry-broker/registry-broker-erc8004-x402-demo.ts",
|
|
155
|
+
"demo:registry-broker-x402-topup": "tsx demo/registry-broker/registry-broker-x402-topup.ts",
|
|
156
|
+
"watch": "nodemon --watch src --ext ts,tsx --exec \"npm run build && yalc push\"",
|
|
157
|
+
"test": "jest",
|
|
158
|
+
"test:unit-list": "jest --listTests --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
159
|
+
"test:unit-fast": "jest --coverage --runInBand --detectOpenHandles --testPathPattern __tests__/utils/ --testPathPattern __tests__/services/ --testPathPattern __tests__/content-store/ --testPathPattern __tests__/fees/ --testPathPattern __tests__/common/tx/",
|
|
160
|
+
"lint": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
161
|
+
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\" \"demo/**/*.{ts,tsx,js,jsx,json}\" \"__tests__/**/*.{ts,tsx,js,jsx,json}\"",
|
|
162
|
+
"format": "npm run lint:fix",
|
|
163
|
+
"format:check": "npm run lint"
|
|
164
|
+
}
|
|
165
|
+
}
|