@xoxno/sdk-js 1.0.116 → 1.0.117
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/index.bundled.d.cts +2575 -0
- package/package.json +13 -6
- /package/dist/{index.cjs.js → index.cjs} +0 -0
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.117",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
"import": {
|
|
9
|
+
"types": "./dist/index.bundled.d.ts",
|
|
10
|
+
"default": "./dist/index.esm.js"
|
|
11
|
+
},
|
|
12
|
+
"require": {
|
|
13
|
+
"types": "./dist/index.bundled.d.cts",
|
|
14
|
+
"default": "./dist/index.cjs"
|
|
15
|
+
}
|
|
11
16
|
}
|
|
12
17
|
},
|
|
13
18
|
"types": "./dist/index.bundled.d.ts",
|
|
14
|
-
"main": "./dist/index.cjs
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
15
20
|
"module": "./dist/index.esm.js",
|
|
16
21
|
"files": [
|
|
17
22
|
"dist/**/*"
|
|
@@ -20,10 +25,12 @@
|
|
|
20
25
|
"scripts": {
|
|
21
26
|
"test": "jest",
|
|
22
27
|
"build:sdk": "npx bun run src/sdk/parseSwagger.ts && npx oxlint src/sdk/swagger.ts --fix && npx bun run md/extract.ts",
|
|
23
|
-
"build:types": "tsc --emitDeclarationOnly && dts-bundle-generator --no-check --external-imports @xoxno/types @stellar/stellar-sdk @nestjs/common @nestjs/swagger -o dist/index.bundled.d.ts src/index.ts",
|
|
28
|
+
"build:types": "tsc --emitDeclarationOnly && dts-bundle-generator --no-check --external-imports @xoxno/types @stellar/stellar-sdk @nestjs/common @nestjs/swagger -o dist/index.bundled.d.ts src/index.ts && cp dist/index.bundled.d.ts dist/index.bundled.d.cts",
|
|
24
29
|
"build:esm": "webpack --config webpack-esm.config.mjs",
|
|
25
30
|
"build:cjs": "webpack --config webpack-cjs.config.mjs",
|
|
26
31
|
"build": "npm run build:sdk && npm run build:types && npm run build:esm && npm run build:cjs",
|
|
32
|
+
"verify:dist": "node -e \"const m=require('./dist/index.cjs'); if(typeof m.decodeStellarLendingEvent!=='function')throw new Error('CJS require broken'); console.log('CJS ok')\" && node --input-type=module -e \"import('./dist/index.esm.js').then(m=>{if(typeof m.decodeStellarLendingEvent!=='function')throw new Error('ESM import broken'); console.log('ESM ok')})\"",
|
|
33
|
+
"prepublishOnly": "npm run verify:dist",
|
|
27
34
|
"lint": "oxlint src",
|
|
28
35
|
"format": "oxlint src --fix",
|
|
29
36
|
"commit": "git-cz",
|
|
File without changes
|