@xyo-network/sdk-js 3.14.12 → 3.14.14

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.
Files changed (2) hide show
  1. package/package.json +13 -14
  2. package/scripts/imports.mjs +0 -60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/sdk-js",
3
- "version": "3.14.12",
3
+ "version": "3.14.14",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -39,14 +39,10 @@
39
39
  "compile": "./scripts/clear-scrollback-buffer.sh && yarn xy compile",
40
40
  "coverage": "vitest --coverage --watch false",
41
41
  "cycle": "node ./scripts/run-cycle.mjs",
42
- "depends": "node ./scripts/imports.mjs",
43
42
  "deploy": "xy deploy",
44
43
  "free-3033": "kill -9 $(lsof -t -i :3033)",
45
44
  "free-8080": "kill -9 $(lsof -t -i :8080)",
46
45
  "free-mongo": "kill -9 $(lsof -t -i :55391) && kill -9 $(lsof -t -i :55393)",
47
- "knip:modules": "echo ---Unlisted Dependencies--- && yarn workspace @xyo-network/modules run knip --include unlisted --no-exit-code",
48
- "knip:unlisted": "echo ---Unlisted Dependencies--- && yarn workspaces foreach -Ap --exclude @xyo-network/sdk-js --no-interlaced run knip --include unlisted",
49
- "knip:wallet": "echo ---Unlisted Dependencies--- && yarn workspace @xyo-network/wallet run knip --include unlisted --no-exit-code",
50
46
  "package-build": "yarn package-clean && rimraf docs && yarn package-build-only && typedoc && xy statics",
51
47
  "package-clean": "rimraf dist",
52
48
  "test": "vitest --watch false"
@@ -57,28 +53,31 @@
57
53
  "unrs-resolver": "1.7.0"
58
54
  },
59
55
  "dependencies": {
60
- "@xyo-network/manifest": "^3.14.12",
61
- "@xyo-network/modules": "^3.14.12",
62
- "@xyo-network/protocol": "^3.14.12"
56
+ "@xyo-network/manifest": "^3.14.14",
57
+ "@xyo-network/modules": "^3.14.14",
58
+ "@xyo-network/protocol": "^3.14.14"
63
59
  },
64
60
  "devDependencies": {
65
61
  "@firebase/app": "^0.11.5",
66
62
  "@firebase/app-compat": "^0.2.54",
67
63
  "@stylistic/eslint-plugin": "^4.2.0",
68
64
  "@types/supertest": "^6.0.3",
69
- "@typescript-eslint/eslint-plugin": "^8.31.0",
70
- "@typescript-eslint/parser": "^8.31.0",
65
+ "@typescript-eslint/eslint-plugin": "^8.31.1",
66
+ "@typescript-eslint/parser": "^8.31.1",
71
67
  "@vitest/coverage-v8": "^3.1.2",
72
- "@xylabs/eslint-config-flat": "^6.3.5",
68
+ "@xylabs/eslint-config-flat": "^6.4.0",
73
69
  "@xylabs/forget": "^4.8.7",
74
- "@xylabs/ts-scripts-yarn3": "^6.3.5",
75
- "@xylabs/tsconfig": "^6.3.5",
70
+ "@xylabs/ts-scripts-yarn3": "^6.4.0",
71
+ "@xylabs/tsconfig": "^6.4.0",
72
+ "@xylabs/tsconfig-dom": "^6.4.0",
76
73
  "@xylabs/vitest-extended": "^4.8.7",
77
- "@xyo-network/sdk-utils": "^3.14.12",
74
+ "@xyo-network/sdk-utils": "^3.14.14",
75
+ "chalk": "^5.4.1",
78
76
  "dependency-cruiser": "^16.10.1",
79
77
  "dotenv": "^16.5.0",
80
78
  "eslint": "^9.25.1",
81
79
  "eslint-import-resolver-typescript": "^4.3.4",
80
+ "glob": "^11.0.2",
82
81
  "jsdom": "^26.1.0",
83
82
  "knip": "^5.50.5",
84
83
  "reflect-metadata": "^0.2.2",
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import ts from 'typescript'
4
- import path from 'node:path'
5
- import fs from 'node:fs'
6
-
7
- function getDependenciesFromPackageJson(packageJsonPath) {
8
- const packageJsonFullPath = path.resolve(packageJsonPath)
9
- const rawContent = fs.readFileSync(packageJsonFullPath, 'utf8')
10
- const packageJson = JSON.parse(rawContent)
11
-
12
- const dependencies = packageJson.dependencies
13
- ? Object.keys(packageJson.dependencies)
14
- : []
15
-
16
- const devDependencies = packageJson.devDependencies
17
- ? Object.keys(packageJson.devDependencies)
18
- : []
19
-
20
- return { dependencies, devDependencies }
21
- }
22
-
23
- function getImportsFromFile(filePath) {
24
- const sourceCode = fs.readFileSync(filePath, 'utf8')
25
-
26
- const sourceFile = ts.createSourceFile(
27
- path.basename(filePath),
28
- sourceCode,
29
- ts.ScriptTarget.Latest,
30
- true,
31
- )
32
-
33
- const imports = []
34
-
35
- function visit(node) {
36
- if (ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) {
37
- const moduleSpecifier = (node.moduleSpecifier)?.text
38
- if (moduleSpecifier) {
39
- imports.push(moduleSpecifier)
40
- }
41
- }
42
- ts.forEachChild(node, visit)
43
- }
44
-
45
- visit(sourceFile)
46
-
47
- return imports
48
- }
49
-
50
- function run() {
51
- const imports = getImportsFromFile('./src/index.ts')
52
- const externalImports = imports.filter(imp => !imp.startsWith('.') && !imp.startsWith('#'))
53
- console.log(externalImports)
54
-
55
- const deps = getDependenciesFromPackageJson('./package.json')
56
- console.log('Dependencies:', deps.dependencies)
57
- console.log('DevDependencies:', deps.devDependencies)
58
- }
59
-
60
- run()