@xyo-network/schema-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.
- package/package.json +10 -14
- package/src/Payload.ts +0 -36
- package/src/Plugin.ts +0 -11
- package/src/Schema.ts +0 -4
- package/src/Template.ts +0 -9
- package/src/index.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/schema-payload-plugin",
|
|
3
|
-
"version": "5.3.
|
|
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.
|
|
41
|
-
"@xyo-network/payload-plugin": "~5.3.
|
|
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.
|
|
47
|
-
"@xylabs/ts-scripts-common": "~7.6.
|
|
48
|
-
"@xylabs/ts-scripts-
|
|
49
|
-
"@xylabs/tsconfig": "~7.6.
|
|
50
|
-
"@xylabs/vitest-extended": "~5.0.
|
|
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
|
-
"
|
|
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,36 +0,0 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import { SchemaSchema } from './Schema.ts'
|
|
5
|
-
|
|
6
|
-
export type SchemaPayload = Payload<{
|
|
7
|
-
/**
|
|
8
|
-
* The schema definition
|
|
9
|
-
*/
|
|
10
|
-
definition: {
|
|
11
|
-
[key: string]: unknown
|
|
12
|
-
$id?: string
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The schema this schema extends (if any)
|
|
16
|
-
*/
|
|
17
|
-
extends?: string
|
|
18
|
-
|
|
19
|
-
/** @deprecated use definition.$id instead */
|
|
20
|
-
name?: string
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The version of the schema major * 1,000,000 + minor * 1,000 + patch
|
|
24
|
-
*/
|
|
25
|
-
version?: number
|
|
26
|
-
}, SchemaSchema>
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Identity function for determining if an object is an Schema
|
|
30
|
-
*/
|
|
31
|
-
export const isSchemaPayload = isPayloadOfSchemaType<SchemaPayload>(SchemaSchema)
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Identity function for determining if an object is an Schema with sources
|
|
35
|
-
*/
|
|
36
|
-
export const isSchemaPayloadWithSources = isPayloadOfSchemaTypeWithSources<SchemaPayload>(SchemaSchema)
|
package/src/Plugin.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createPayloadPlugin } from '@xyo-network/payload-plugin'
|
|
2
|
-
|
|
3
|
-
import type { SchemaPayload } from './Payload.ts'
|
|
4
|
-
import { SchemaSchema } from './Schema.ts'
|
|
5
|
-
import { schemaPayloadTemplate } from './Template.ts'
|
|
6
|
-
|
|
7
|
-
export const SchemaPayloadPlugin = () =>
|
|
8
|
-
createPayloadPlugin<SchemaPayload>({
|
|
9
|
-
schema: SchemaSchema,
|
|
10
|
-
template: schemaPayloadTemplate,
|
|
11
|
-
})
|
package/src/Schema.ts
DELETED
package/src/Template.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SchemaPayload } from './Payload.ts'
|
|
2
|
-
import { SchemaSchema } from './Schema.ts'
|
|
3
|
-
export const schemaPayloadTemplate = (): SchemaPayload => ({
|
|
4
|
-
definition: {
|
|
5
|
-
$id: '',
|
|
6
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
7
|
-
},
|
|
8
|
-
schema: SchemaSchema,
|
|
9
|
-
})
|
package/src/index.ts
DELETED