@bsv/sdk 1.1.27 → 1.1.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/sdk",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "type": "module",
5
5
  "description": "BSV Blockchain Software Development Kit",
6
6
  "main": "dist/cjs/mod.js",
@@ -133,6 +133,9 @@
133
133
  "import": "./dist/esm/src/totp/*.js",
134
134
  "require": "./dist/cjs/src/totp/*.js",
135
135
  "types": "./dist/types/src/totp/*.d.ts"
136
+ },
137
+ "./umd": {
138
+ "import": "./dist/umd/bundle.js"
136
139
  }
137
140
  },
138
141
  "scripts": {
@@ -140,7 +143,9 @@
140
143
  "test:watch": "npm run build && jest --watch",
141
144
  "test:coverage": "npm run build && jest --coverage",
142
145
  "lint": "ts-standard --fix src/**/*.ts",
143
- "build": "tsc -b && tsconfig-to-dual-package tsconfig.cjs.json",
146
+ "build": "npm run build:ts && npm run build:umd",
147
+ "build:ts": "tsc -b && tsconfig-to-dual-package tsconfig.cjs.json",
148
+ "build:umd": "webpack --config webpack.config.js",
144
149
  "dev": "tsc -b -w",
145
150
  "prepublish": "npm run build",
146
151
  "doc": "ts2md --inputFilename=src/script/index.ts --outputFilename=docs/script.md --filenameSubString=script --firstHeadingLevel=1 && ts2md --inputFilename=src/primitives/index.ts --outputFilename=docs/primitives.md --filenameSubString=primitives --firstHeadingLevel=1 && ts2md --inputFilename=src/transaction/index.ts --outputFilename=docs/transaction.md --filenameSubString=transaction --firstHeadingLevel=1 && ts2md --inputFilename=src/messages/index.ts --outputFilename=docs/messages.md --filenameSubString=messages --firstHeadingLevel=1 && ts2md --inputFilename=src/compat/index.ts --outputFilename=docs/compat.md --filenameSubString=compat --firstHeadingLevel=1"
@@ -166,9 +171,12 @@
166
171
  "@types/jest": "^29.5.5",
167
172
  "jest": "^29.7.0",
168
173
  "ts-jest": "^29.1.1",
174
+ "ts-loader": "^9.5.1",
169
175
  "ts-standard": "^12.0.2",
170
176
  "ts2md": "^0.2.0",
171
177
  "tsconfig-to-dual-package": "^1.2.0",
172
- "typescript": "^5.2.2"
178
+ "typescript": "^5.2.2",
179
+ "webpack": "^5.95.0",
180
+ "webpack-cli": "^5.1.4"
173
181
  }
174
182
  }