@xyo-network/id-payload-plugin 5.3.22 → 5.3.24

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.
@@ -19,7 +19,7 @@ export type IdPayload = Id;
19
19
  */
20
20
  export declare const isId: (x?: unknown | null) => x is Id;
21
21
  export declare const asId: import("@xylabs/sdk-js").AsTypeFunction<Id>;
22
- export declare const asOptionalId: (value: import("@xylabs/promise").AnyNonPromise) => Id | undefined;
22
+ export declare const asOptionalId: (value: import("@xylabs/sdk-js").AnyNonPromise) => Id | undefined;
23
23
  /**
24
24
  * Identity helper for ID Payload with sources
25
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAE5C;;GAEG;AAEH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,IAAI,iCAAsC,CAAA;AACvD,eAAO,MAAM,IAAI,6CAA+B,CAAA;AAChD,eAAO,MAAM,YAAY,oEAAuC,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe,2DAA8D,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAE5C;;GAEG;AAEH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,IAAI,iCAAsC,CAAA;AACvD,eAAO,MAAM,IAAI,6CAA+B,CAAA;AAChD,eAAO,MAAM,YAAY,mEAAuC,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe,2DAA8D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/id-payload-plugin",
3
- "version": "5.3.22",
3
+ "version": "5.3.24",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,30 +30,26 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
33
  "!**/*.bench.*",
35
34
  "!**/*.spec.*",
36
35
  "!**/*.test.*",
37
36
  "README.md"
38
37
  ],
39
38
  "dependencies": {
40
- "@xyo-network/payload-model": "~5.3.22",
41
- "@xyo-network/payload-plugin": "~5.3.22"
39
+ "@xyo-network/payload-model": "~5.3.24",
40
+ "@xyo-network/payload-plugin": "~5.3.24"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@opentelemetry/api": "^1.9.1",
45
44
  "@types/node": "^25.5.0",
46
- "@xylabs/sdk-js": "^5.0.91",
47
- "@xylabs/ts-scripts-common": "~7.6.8",
48
- "@xylabs/ts-scripts-yarn3": "~7.6.8",
49
- "@xylabs/tsconfig": "~7.6.8",
50
- "@xylabs/vitest-extended": "~5.0.91",
45
+ "@xylabs/sdk-js": "^5.0.93",
46
+ "@xylabs/ts-scripts-common": "~7.6.16",
47
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
48
+ "@xylabs/tsconfig": "~7.6.16",
49
+ "@xylabs/vitest-extended": "~5.0.93",
51
50
  "acorn": "^8.16.0",
52
51
  "axios": "^1.14.0",
53
- "cosmiconfig": "^9.0.1",
54
- "esbuild": "^0.27.4",
55
- "eslint": "^10.1.0",
56
- "rollup": "^4.60.1",
52
+ "esbuild": "^0.28.0",
57
53
  "typescript": "~5.9.3",
58
54
  "vite": "^8.0.3",
59
55
  "vitest": "~4.1.2",
@@ -66,4 +62,4 @@
66
62
  "publishConfig": {
67
63
  "access": "public"
68
64
  }
69
- }
65
+ }
package/src/Payload.ts DELETED
@@ -1,41 +0,0 @@
1
- import { AsObjectFactory } from '@xylabs/sdk-js'
2
- import type {
3
- Payload,
4
- WithSources,
5
- } from '@xyo-network/payload-model'
6
- import {
7
- isPayloadOfSchemaType,
8
- isPayloadOfSchemaTypeWithSources,
9
- } from '@xyo-network/payload-model'
10
-
11
- import { IdSchema } from './Schema.ts'
12
-
13
- /**
14
- * The fields of an ID Payload
15
- */
16
- export type IdFields = {
17
- salt: string
18
- }
19
-
20
- /**
21
- * The ID Payload
22
- */
23
- export type Id = Payload<IdFields, IdSchema>
24
-
25
- /**
26
- * @deprecated Use `Id` instead
27
- */
28
-
29
- export type IdPayload = Id
30
-
31
- /**
32
- * Identity helper for ID Payload
33
- */
34
- export const isId = isPayloadOfSchemaType<Id>(IdSchema)
35
- export const asId = AsObjectFactory.create(isId)
36
- export const asOptionalId = AsObjectFactory.createOptional(isId)
37
-
38
- /**
39
- * Identity helper for ID Payload with sources
40
- */
41
- export const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<Id>>(IdSchema)
package/src/Plugin.ts DELETED
@@ -1,11 +0,0 @@
1
- import { createPayloadPlugin } from '@xyo-network/payload-plugin'
2
-
3
- import type { Id } from './Payload.ts'
4
- import { IdSchema } from './Schema.ts'
5
- import { idPayloadTemplate } from './Template.ts'
6
-
7
- export const IdPayloadPlugin = () =>
8
- createPayloadPlugin<Id>({
9
- schema: IdSchema,
10
- template: idPayloadTemplate,
11
- })
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const IdSchema = asSchema('network.xyo.id', true)
4
- export type IdSchema = typeof IdSchema
package/src/Template.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { Id } from './Payload.ts'
2
- import { IdSchema } from './Schema.ts'
3
-
4
- export const idPayloadTemplate = (): Id => ({
5
- salt: '',
6
- schema: IdSchema,
7
- })
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './Payload.ts'
2
- export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts'
3
- export * from './Schema.ts'
4
- export * from './Template.ts'