@xylabs/sdk-js 4.13.18 → 4.13.20
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/README.md +1 -1
- package/package.json +32 -26
- package/BUILD_STATUS.md +0 -12
- package/eslint.config.mjs +0 -54
- package/heap-profiles/heap-sampling-1748439117477.heapprofile +0 -1
- package/heap-profiles/heap-sampling-1748439325084.heapprofile +0 -1
- package/heap-profiles/heap-sampling-1748440437008.heapprofile +0 -1
- package/heap-profiles/heap-sampling-1748441074670.heapprofile +0 -1
- package/heap-profiles/heap-sampling-1748441400208.heapprofile +0 -1
- package/heap-profiles/heap-sampling-1748457824039.heapprofile +0 -1
- package/heap-profiles/heap-sampling-1748458085345.heapprofile +0 -1
- package/knip.config.ts +0 -42
- package/scripts/README.template.md +0 -60
- package/scripts/readme-gen.mjs +0 -36
- package/typedoc.json +0 -5
- package/vitest.config.ts +0 -12
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"head":{"callFrame":{"functionName":"(root)","scriptId":"0","url":"","lineNumber":-1,"columnNumber":-1},"selfSize":0,"id":1,"children":[{"callFrame":{"functionName":"processTicksAndRejections","scriptId":"32","url":"node:internal/process/task_queues","lineNumber":66,"columnNumber":34},"selfSize":0,"id":2,"children":[{"callFrame":{"functionName":"","scriptId":"0","url":"","lineNumber":-1,"columnNumber":-1},"selfSize":0,"id":3,"children":[{"callFrame":{"functionName":"","scriptId":"291","url":"/Users/joel/repos/sdk-js/packages/mongo/src/spec/Wrapper.spec.ts","lineNumber":72,"columnNumber":116},"selfSize":0,"id":4,"children":[{"callFrame":{"functionName":"map","scriptId":"0","url":"","lineNumber":-1,"columnNumber":-1},"selfSize":0,"id":6,"children":[{"callFrame":{"functionName":"","scriptId":"291","url":"/Users/joel/repos/sdk-js/packages/mongo/src/spec/Wrapper.spec.ts","lineNumber":78,"columnNumber":45},"selfSize":0,"id":7,"children":[{"callFrame":{"functionName":"get","scriptId":"293","url":"/Users/joel/repos/sdk-js/packages/mongo/src/Wrapper.ts","lineNumber":9,"columnNumber":12},"selfSize":0,"id":8,"children":[{"callFrame":{"functionName":"MongoClientWrapper","scriptId":"293","url":"/Users/joel/repos/sdk-js/packages/mongo/src/Wrapper.ts","lineNumber":5,"columnNumber":13},"selfSize":0,"id":9,"children":[{"callFrame":{"functionName":"MongoClient","scriptId":"506","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-virtual-bec378f92f/package/lib/mongo_client.js","lineNumber":48,"columnNumber":15},"selfSize":0,"id":10,"children":[{"callFrame":{"functionName":"parseOptions","scriptId":"514","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-virtual-bec378f92f/package/lib/connection_string.js","lineNumber":190,"columnNumber":21},"selfSize":33152,"id":11,"children":[{"callFrame":{"functionName":"keys","scriptId":"515","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-connection-string-url-npm-3.0.2-030549db4b/package/lib/index.js","lineNumber":56,"columnNumber":12},"selfSize":32816,"id":20,"children":[]},{"callFrame":{"functionName":"ConnectionString","scriptId":"515","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-connection-string-url-npm-3.0.2-030549db4b/package/lib/index.js","lineNumber":81,"columnNumber":15},"selfSize":65584,"id":12,"children":[{"callFrame":{"functionName":"URLWithoutHost","scriptId":"515","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-connection-string-url-npm-3.0.2-030549db4b/package/lib/index.js","lineNumber":73,"columnNumber":0},"selfSize":0,"id":13,"children":[{"callFrame":{"functionName":"URL","scriptId":"518","url":"/Users/joel/repos/sdk-js/node_modules/.store/whatwg-url-npm-14.2.0-67b670990c/package/lib/URL.js","lineNumber":89,"columnNumber":15},"selfSize":0,"id":14,"children":[{"callFrame":{"functionName":"exports.setup","scriptId":"518","url":"/Users/joel/repos/sdk-js/node_modules/.store/whatwg-url-npm-14.2.0-67b670990c/package/lib/URL.js","lineNumber":48,"columnNumber":16},"selfSize":0,"id":15,"children":[{"callFrame":{"functionName":"URLImpl","scriptId":"521","url":"/Users/joel/repos/sdk-js/node_modules/.store/whatwg-url-npm-14.2.0-67b670990c/package/lib/URL-impl.js","lineNumber":8,"columnNumber":13},"selfSize":0,"id":16,"children":[{"callFrame":{"functionName":"module.exports.basicURLParse","scriptId":"522","url":"/Users/joel/repos/sdk-js/node_modules/.store/whatwg-url-npm-14.2.0-67b670990c/package/lib/url-state-machine.js","lineNumber":1235,"columnNumber":40},"selfSize":0,"id":17,"children":[{"callFrame":{"functionName":"URLStateMachine","scriptId":"522","url":"/Users/joel/repos/sdk-js/node_modules/.store/whatwg-url-npm-14.2.0-67b670990c/package/lib/url-state-machine.js","lineNumber":500,"columnNumber":24},"selfSize":0,"id":18,"children":[{"callFrame":{"functionName":"parseScheme","scriptId":"522","url":"/Users/joel/repos/sdk-js/node_modules/.store/whatwg-url-npm-14.2.0-67b670990c/package/lib/url-state-machine.js","lineNumber":574,"columnNumber":64},"selfSize":32784,"id":19,"children":[]}]}]}]}]}]}]}]},{"callFrame":{"functionName":"makeClientMetadata","scriptId":"535","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-virtual-bec378f92f/package/lib/cmap/handshake/client_metadata.js","lineNumber":51,"columnNumber":27},"selfSize":0,"id":30,"children":[{"callFrame":{"functionName":"toObject","scriptId":"535","url":"/Users/joel/repos/sdk-js/node_modules/.store/mongodb-virtual-bec378f92f/package/lib/cmap/handshake/client_metadata.js","lineNumber":33,"columnNumber":12},"selfSize":0,"id":31,"children":[{"callFrame":{"functionName":"deserialize","scriptId":"433","url":"/Users/joel/repos/sdk-js/node_modules/.store/bson-npm-6.10.3-f15e20e8f4/package/lib/bson.cjs","lineNumber":4514,"columnNumber":20},"selfSize":33024,"id":32,"children":[{"callFrame":{"functionName":"internalDeserialize","scriptId":"433","url":"/Users/joel/repos/sdk-js/node_modules/.store/bson-npm-6.10.3-f15e20e8f4/package/lib/bson.cjs","lineNumber":3034,"columnNumber":28},"selfSize":0,"id":33,"children":[{"callFrame":{"functionName":"deserializeObject","scriptId":"433","url":"/Users/joel/repos/sdk-js/node_modules/.store/bson-npm-6.10.3-f15e20e8f4/package/lib/bson.cjs","lineNumber":3056,"columnNumber":26},"selfSize":0,"id":34,"children":[{"callFrame":{"functionName":"deserializeObject","scriptId":"433","url":"/Users/joel/repos/sdk-js/node_modules/.store/bson-npm-6.10.3-f15e20e8f4/package/lib/bson.cjs","lineNumber":3056,"columnNumber":26},"selfSize":67584,"id":35,"children":[]}]}]}]}]}]}]}]}]}]}]}]}]},{"callFrame":{"functionName":"","scriptId":"291","url":"/Users/joel/repos/sdk-js/packages/mongo/src/spec/Wrapper.spec.ts","lineNumber":78,"columnNumber":45},"selfSize":0,"id":82,"children":[{"callFrame":{"functionName":"promiseInitHookWithDestroyTracking","scriptId":"11","url":"node:internal/async_hooks","lineNumber":326,"columnNumber":43},"selfSize":68080,"id":111,"children":[]}]}]}]}]},"samples":[{"size":32944,"nodeId":111,"ordinal":15681},{"size":35136,"nodeId":111,"ordinal":16597},{"size":32816,"nodeId":20,"ordinal":7},{"size":32800,"nodeId":12,"ordinal":3},{"size":33152,"nodeId":11,"ordinal":11},{"size":32784,"nodeId":19,"ordinal":4},{"size":33024,"nodeId":32,"ordinal":12},{"size":67584,"nodeId":35,"ordinal":13},{"size":32784,"nodeId":12,"ordinal":6}]}
|
package/knip.config.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { KnipConfig } from 'knip'
|
|
2
|
-
|
|
3
|
-
const config: KnipConfig = {
|
|
4
|
-
ignoreDependencies: ['@xylabs/ts-scripts-yarn3'],
|
|
5
|
-
workspaces: {
|
|
6
|
-
'.': {
|
|
7
|
-
entry: ['src/index.ts'],
|
|
8
|
-
ignoreDependencies: [
|
|
9
|
-
'eslint-import-resolver-typescript',
|
|
10
|
-
],
|
|
11
|
-
},
|
|
12
|
-
'packages/buffer': {
|
|
13
|
-
ignoreDependencies: ['buffer'],
|
|
14
|
-
entry: ['src/node/index.ts', 'src/browser/index.ts'],
|
|
15
|
-
},
|
|
16
|
-
'packages/*': { entry: ['src/index.ts'] },
|
|
17
|
-
'packages/platform': { entry: ['src/node/index.ts', 'src/browser/index.ts'] },
|
|
18
|
-
'packages/crypto': { entry: ['src/node/index.ts', 'src/browser/index.ts'] },
|
|
19
|
-
'packages/forget': { entry: ['src/index.ts', 'src/index-node.ts'] },
|
|
20
|
-
'packages/url': { entry: ['src/node/index.ts', 'src/browser/index.ts', 'src/neutral/index.ts'] },
|
|
21
|
-
'packages/threads': {
|
|
22
|
-
ignoreDependencies: ['is-observable-2-1-0'],
|
|
23
|
-
entry: [
|
|
24
|
-
'src/index-node.ts',
|
|
25
|
-
'src/index-browser.ts',
|
|
26
|
-
'src/master/implementation.browser.ts',
|
|
27
|
-
'src/master/implementation.node.ts',
|
|
28
|
-
'index.mjs',
|
|
29
|
-
'src/master/register.ts',
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
'packages/static-implements': { ignoreDependencies: ['tslib'] },
|
|
33
|
-
},
|
|
34
|
-
typescript: {
|
|
35
|
-
config: [
|
|
36
|
-
'tsconfig.json',
|
|
37
|
-
'packages/**/*/tsconfig.json',
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default config
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# {{name}}
|
|
2
|
-
|
|
3
|
-
[![logo][]](https://xylabs.com)
|
|
4
|
-
|
|
5
|
-
[![main-build][]][main-build-link]
|
|
6
|
-
[![npm-badge][]][npm-link]
|
|
7
|
-
[![npm-downloads-badge][]][npm-link]
|
|
8
|
-
[![jsdelivr-badge][]][jsdelivr-link]
|
|
9
|
-
[![npm-license-badge][]](LICENSE)
|
|
10
|
-
[![codacy-badge][]][codacy-link]
|
|
11
|
-
[![codeclimate-badge][]][codeclimate-link]
|
|
12
|
-
[![snyk-badge][]][snyk-link]
|
|
13
|
-
[![socket-badge][]][socket-link]
|
|
14
|
-
|
|
15
|
-
Version: {{version}}
|
|
16
|
-
|
|
17
|
-
{{description}}
|
|
18
|
-
|
|
19
|
-
## Documentation
|
|
20
|
-
|
|
21
|
-
Coming Soon!
|
|
22
|
-
|
|
23
|
-
Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
|
|
24
|
-
|
|
25
|
-
## Maintainers
|
|
26
|
-
|
|
27
|
-
- [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
|
|
28
|
-
- [Matt Jones](https://github.com/jonesmac)
|
|
29
|
-
- [Joel Carter](https://github.com/JoelBCarter)
|
|
30
|
-
- [Jordan Trouw](https://github.com/jordantrouw)
|
|
31
|
-
|
|
32
|
-
## License
|
|
33
|
-
|
|
34
|
-
> See the [LICENSE](LICENSE) file for license details
|
|
35
|
-
|
|
36
|
-
## Credits
|
|
37
|
-
|
|
38
|
-
[Made with 🔥 and ❄️ by XYLabs](https://xylabs.com)
|
|
39
|
-
|
|
40
|
-
[logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
|
|
41
|
-
|
|
42
|
-
[main-build]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml/badge.svg
|
|
43
|
-
[main-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml
|
|
44
|
-
[npm-badge]: https://img.shields.io/npm/v/{{name}}.svg
|
|
45
|
-
[npm-link]: https://www.npmjs.com/package/{{name}}
|
|
46
|
-
[codacy-badge]: https://app.codacy.com/project/badge/Grade/c8e15e14f37741c18cfb47ac7245c698
|
|
47
|
-
[codacy-link]: https://www.codacy.com/gh/xylabs/sdk-js/dashboard?utm_source=github.com&utm_medium=referral&utm_content=xylabs/sdk-js&utm_campaign=Badge_Grade
|
|
48
|
-
[codeclimate-badge]: https://api.codeclimate.com/v1/badges/c5eb068f806f0b047ea7/maintainability
|
|
49
|
-
[codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-js/maintainability
|
|
50
|
-
[snyk-badge]: https://snyk.io/test/github/xylabs/sdk-js/badge.svg?targetFile=package.json
|
|
51
|
-
[snyk-link]: https://snyk.io/test/github/xylabs/sdk-js?targetFile=package.json
|
|
52
|
-
|
|
53
|
-
[npm-downloads-badge]: https://img.shields.io/npm/dw/{{name}}
|
|
54
|
-
[npm-license-badge]: https://img.shields.io/npm/l/{{name}}
|
|
55
|
-
|
|
56
|
-
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/{{name}}/badge
|
|
57
|
-
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/{{name}}
|
|
58
|
-
|
|
59
|
-
[socket-badge]: https://socket.dev/api/badge/npm/package/{{name}}
|
|
60
|
-
[socket-link]: https://socket.dev/npm/package/{{name}}
|
package/scripts/readme-gen.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// generate-readmes.mjs
|
|
4
|
-
import { readFile, writeFile } from 'node:fs/promises'
|
|
5
|
-
import path from 'node:path'
|
|
6
|
-
import { fileURLToPath } from 'node:url'
|
|
7
|
-
import { yarnWorkspaces } from '@xylabs/ts-scripts-yarn3'
|
|
8
|
-
// import { generateDocsForPackage } from './generate-docs-for-package.mjs'
|
|
9
|
-
|
|
10
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
11
|
-
const templatePath = path.join(__dirname, 'README.template.md')
|
|
12
|
-
|
|
13
|
-
function fillTemplate(template, data) {
|
|
14
|
-
const additionalData = { ...data, safeName: data.name.replaceAll('/', '__').replaceAll('@', '') }
|
|
15
|
-
return template.replaceAll(/{{(.*?)}}/g, (_, key) => additionalData[key.trim()] ?? '')
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
async function main() {
|
|
19
|
-
const template = await readFile(templatePath, 'utf8')
|
|
20
|
-
const pkgs = yarnWorkspaces()
|
|
21
|
-
|
|
22
|
-
for (const { location } of pkgs) {
|
|
23
|
-
const pkgJsonPath = path.join(location, 'package.json')
|
|
24
|
-
try {
|
|
25
|
-
const pkg = JSON.parse(await readFile(pkgJsonPath, 'utf8'))
|
|
26
|
-
const readmeContent = fillTemplate(template, pkg)
|
|
27
|
-
await writeFile(path.join(location, 'README.md'), readmeContent)
|
|
28
|
-
// generateDocsForPackage(pkg.name, location)
|
|
29
|
-
console.log(`✅ Created README.md for ${pkg.name}`)
|
|
30
|
-
} catch (err) {
|
|
31
|
-
console.warn(`⚠️ Skipped ${location}:`, err.message)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
main().catch(console.error)
|
package/typedoc.json
DELETED
package/vitest.config.ts
DELETED