@xyo-network/url-safety-payload-plugin 3.0.3 → 3.0.5

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.
@@ -0,0 +1,8 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import type { UrlPayload } from '@xyo-network/url-payload-plugin';
3
+ import type { UrlSafetySchema } from './Schema.ts';
4
+ export type UrlSafetyThreatType = 'SOCIAL_ENGINEERING' | 'POTENTIALLY_HARMFUL_APPLICATION' | 'UNWANTED_SOFTWARE' | 'THREAT_TYPE_UNSPECIFIED';
5
+ export type UrlSafetyPayload = Payload<Omit<UrlPayload, 'schema'> & {
6
+ threatTypes?: UrlSafetyThreatType[];
7
+ }, UrlSafetySchema>;
8
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,iCAAiC,GAAG,mBAAmB,GAAG,yBAAyB,CAAA;AAE5I,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG;IAC3B,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACpC,EACD,eAAe,CAChB,CAAA"}
@@ -0,0 +1,9 @@
1
+ export declare const UrlSafetyPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
2
+ schema: import("@xyo-network/url-payload-plugin").UrlSchema;
3
+ url: string;
4
+ }, "schema"> & {
5
+ threatTypes?: import("./Payload.ts").UrlSafetyThreatType[];
6
+ } & {
7
+ schema: "network.xyo.url.safety";
8
+ }>;
9
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EACiC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const UrlSafetySchema = "network.xyo.url.safety";
2
+ export type UrlSafetySchema = typeof UrlSafetySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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,24 +1,4 @@
1
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
2
- import { Payload } from '@xyo-network/payload-model';
3
- import * as _xyo_network_url_payload_plugin from '@xyo-network/url-payload-plugin';
4
- import { UrlPayload } from '@xyo-network/url-payload-plugin';
5
- import * as _xyo_network_payload_plugin from '@xyo-network/payload-plugin';
6
-
7
- declare const UrlSafetySchema = "network.xyo.url.safety";
8
- type UrlSafetySchema = typeof UrlSafetySchema;
9
-
10
- type UrlSafetyThreatType = 'SOCIAL_ENGINEERING' | 'POTENTIALLY_HARMFUL_APPLICATION' | 'UNWANTED_SOFTWARE' | 'THREAT_TYPE_UNSPECIFIED';
11
- type UrlSafetyPayload = Payload<Omit<UrlPayload, 'schema'> & {
12
- threatTypes?: UrlSafetyThreatType[];
13
- }, UrlSafetySchema>;
14
-
15
- declare const UrlSafetyPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
16
- schema: _xyo_network_url_payload_plugin.UrlSchema;
17
- url: string;
18
- }, "schema"> & {
19
- threatTypes?: UrlSafetyThreatType[];
20
- } & {
21
- schema: "network.xyo.url.safety";
22
- }>;
23
-
24
- export { type UrlSafetyPayload, UrlSafetyPayloadPlugin, UrlSafetySchema, type UrlSafetyThreatType, UrlSafetyPayloadPlugin as default };
1
+ export * from './Payload.ts';
2
+ export { UrlSafetyPayloadPlugin as default, UrlSafetyPayloadPlugin } from './Plugin.ts';
3
+ export * from './Schema.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACvF,cAAc,aAAa,CAAA"}
@@ -5,9 +5,7 @@ import { createPayloadPlugin } from "@xyo-network/payload-plugin";
5
5
  var UrlSafetySchema = "network.xyo.url.safety";
6
6
 
7
7
  // src/Plugin.ts
8
- var UrlSafetyPayloadPlugin = () => createPayloadPlugin({
9
- schema: UrlSafetySchema
10
- });
8
+ var UrlSafetyPayloadPlugin = () => createPayloadPlugin({ schema: UrlSafetySchema });
11
9
  export {
12
10
  UrlSafetyPayloadPlugin,
13
11
  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>({\n schema: UrlSafetySchema,\n })\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;AAAA,EACpC,QAAQ;AACV,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","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":[]}
package/package.json CHANGED
@@ -1,25 +1,24 @@
1
1
  {
2
2
  "name": "@xyo-network/url-safety-payload-plugin",
3
- "author": {
4
- "email": "support@xyo.network",
5
- "name": "XYO Development Team",
6
- "url": "https://xyo.network"
7
- },
3
+ "version": "3.0.5",
4
+ "description": "Typescript/Javascript Plugins for XYO Platform",
5
+ "homepage": "https://xyo.network",
8
6
  "bugs": {
9
- "email": "support@xyo.network",
10
- "url": "git+https://github.com/XYOracleNetwork/plugins/issues"
7
+ "url": "git+https://github.com/XYOracleNetwork/plugins/issues",
8
+ "email": "support@xyo.network"
11
9
  },
12
- "dependencies": {
13
- "@xyo-network/payload-model": "^3.0.3",
14
- "@xyo-network/payload-plugin": "^3.0.3",
15
- "@xyo-network/url-payload-plugin": "^3.0.3"
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/XYOracleNetwork/plugins.git"
16
13
  },
17
- "devDependencies": {
18
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
19
- "@xylabs/tsconfig": "^4.0.0-rc.20",
20
- "typescript": "^5.5.4"
14
+ "license": "LGPL-3.0-only",
15
+ "author": {
16
+ "name": "XYO Development Team",
17
+ "email": "support@xyo.network",
18
+ "url": "https://xyo.network"
21
19
  },
22
- "description": "Typescript/Javascript Plugins for XYO Platform",
20
+ "sideEffects": false,
21
+ "type": "module",
23
22
  "exports": {
24
23
  ".": {
25
24
  "types": "./dist/neutral/index.d.ts",
@@ -29,16 +28,17 @@
29
28
  },
30
29
  "module": "dist/neutral/index.mjs",
31
30
  "types": "dist/neutral/index.d.ts",
32
- "homepage": "https://xyo.network",
33
- "license": "LGPL-3.0-only",
34
- "publishConfig": {
35
- "access": "public"
31
+ "dependencies": {
32
+ "@xyo-network/payload-model": "^3.0.11",
33
+ "@xyo-network/payload-plugin": "^3.0.11",
34
+ "@xyo-network/url-payload-plugin": "^3.0.5"
36
35
  },
37
- "repository": {
38
- "type": "git",
39
- "url": "git+https://github.com/XYOracleNetwork/plugins.git"
36
+ "devDependencies": {
37
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
38
+ "@xylabs/tsconfig": "^4.0.7",
39
+ "typescript": "^5.5.4"
40
40
  },
41
- "sideEffects": false,
42
- "version": "3.0.3",
43
- "type": "module"
41
+ "publishConfig": {
42
+ "access": "public"
43
+ }
44
44
  }
package/src/Plugin.ts CHANGED
@@ -4,6 +4,4 @@ import type { UrlSafetyPayload } from './Payload.ts'
4
4
  import { UrlSafetySchema } from './Schema.ts'
5
5
 
6
6
  export const UrlSafetyPayloadPlugin = () =>
7
- createPayloadPlugin<UrlSafetyPayload>({
8
- schema: UrlSafetySchema,
9
- })
7
+ createPayloadPlugin<UrlSafetyPayload>({ schema: UrlSafetySchema })
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: {},
9
7
  },
10
8
  }