@xyo-network/url-safety-payload-plugin 5.2.4 → 5.3.1

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.
@@ -1,3 +1,5 @@
1
- export declare const UrlSafetySchema = "network.xyo.url.safety";
1
+ export declare const UrlSafetySchema: "network.xyo.url.safety" & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type UrlSafetySchema = typeof UrlSafetySchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2BAA2B,CAAA;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;CAA2C,CAAA;AACvE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
@@ -2,7 +2,8 @@
2
2
  import { createPayloadPlugin } from "@xyo-network/payload-plugin";
3
3
 
4
4
  // src/Schema.ts
5
- var UrlSafetySchema = "network.xyo.url.safety";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var UrlSafetySchema = asSchema("network.xyo.url.safety", true);
6
7
 
7
8
  // src/Plugin.ts
8
9
  var UrlSafetyPayloadPlugin = () => createPayloadPlugin({ schema: UrlSafetySchema });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { UrlSafetyPayload } from './Payload.ts'\nimport { UrlSafetySchema } from './Schema.ts'\n\nexport const UrlSafetyPayloadPlugin = () =>\n createPayloadPlugin<UrlSafetyPayload>({ schema: UrlSafetySchema })\n","export const UrlSafetySchema = 'network.xyo.url.safety'\nexport type UrlSafetySchema = typeof UrlSafetySchema\n"],"mappings":";AAAA,SAAS,2BAA2B;;;ACA7B,IAAM,kBAAkB;;;ADKxB,IAAM,yBAAyB,MACpC,oBAAsC,EAAE,QAAQ,gBAAgB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { UrlSafetyPayload } from './Payload.ts'\nimport { UrlSafetySchema } from './Schema.ts'\n\nexport const UrlSafetyPayloadPlugin = () =>\n createPayloadPlugin<UrlSafetyPayload>({ schema: UrlSafetySchema })\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const UrlSafetySchema = asSchema('network.xyo.url.safety', true)\nexport type UrlSafetySchema = typeof UrlSafetySchema\n"],"mappings":";AAAA,SAAS,2BAA2B;;;ACApC,SAAS,gBAAgB;AAElB,IAAM,kBAAkB,SAAS,0BAA0B,IAAI;;;ADG/D,IAAM,yBAAyB,MACpC,oBAAsC,EAAE,QAAQ,gBAAgB,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/url-safety-payload-plugin",
3
- "version": "5.2.4",
3
+ "version": "5.3.1",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,16 +36,16 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/payload-model": "~5.2.14",
40
- "@xyo-network/payload-plugin": "~5.2.14",
41
- "@xyo-network/url-payload-plugin": "~5.2.4"
39
+ "@xyo-network/payload-model": "~5.3.2",
40
+ "@xyo-network/payload-plugin": "~5.3.2",
41
+ "@xyo-network/url-payload-plugin": "5.3.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
45
- "@xylabs/tsconfig": "~7.2.8",
44
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
45
+ "@xylabs/tsconfig": "~7.3.2",
46
46
  "typescript": "~5.9.3"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  }
51
- }
51
+ }
package/src/Schema.ts CHANGED
@@ -1,2 +1,4 @@
1
- export const UrlSafetySchema = 'network.xyo.url.safety'
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
3
+ export const UrlSafetySchema = asSchema('network.xyo.url.safety', true)
2
4
  export type UrlSafetySchema = typeof UrlSafetySchema