@xyo-network/signature-payload-plugin 3.4.3 → 3.4.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.
@@ -1,8 +1,5 @@
1
1
  // src/Payload.ts
2
- import {
3
- isPayloadOfSchemaType,
4
- isPayloadOfSchemaTypeWithSources
5
- } from "@xyo-network/payload-model";
2
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
3
 
7
4
  // src/Schema.ts
8
5
  var SignatureSchema = "network.xyo.signing.signature";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\n} from '@xyo-network/payload-model'\n\nimport { SignatureSchema } from './Schema.ts'\n\n// TODO: Overlap of outputs from:\n// openssl list -digest-algorithms\n// AND\n// inputs to node.js crypto.createHash\nexport type Digest = 'sha512' | 'sha3-256'\n\nexport interface SignatureFields {\n /**\n * The digest algorithm used to create the signature\n */\n digestAlgorithm: Digest\n /**\n * The signature\n */\n signature: string\n}\n\n/**\n * A Signature Payload\n */\nexport type Signature = Payload<SignatureFields, SignatureSchema>\n\n/**\n * Identity function for determine if an object is a Signature\n */\nexport const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)\n\n/**\n * Identity function for determine if an object is a Signature with sources\n */\nexport const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)\n","export const SignatureSchema = 'network.xyo.signing.signature' as const\nexport type SignatureSchema = typeof SignatureSchema\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACFA,IAAM,kBAAkB;;;AD+BxB,IAAM,cAAc,sBAAiC,eAAe;AAKpE,IAAM,yBAAyB,iCAA4C,eAAe;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SignatureSchema } from './Schema.ts'\n\n// TODO: Overlap of outputs from:\n// openssl list -digest-algorithms\n// AND\n// inputs to node.js crypto.createHash\nexport type Digest = 'sha512' | 'sha3-256'\n\nexport interface SignatureFields {\n /**\n * The digest algorithm used to create the signature\n */\n digestAlgorithm: Digest\n /**\n * The signature\n */\n signature: string\n}\n\n/**\n * A Signature Payload\n */\nexport type Signature = Payload<SignatureFields, SignatureSchema>\n\n/**\n * Identity function for determine if an object is a Signature\n */\nexport const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)\n\n/**\n * Identity function for determine if an object is a Signature with sources\n */\nexport const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)\n","export const SignatureSchema = 'network.xyo.signing.signature' as const\nexport type SignatureSchema = typeof SignatureSchema\n"],"mappings":";AACA,SAAS,uBAAuB,wCAAwC;;;ACDjE,IAAM,kBAAkB;;;AD8BxB,IAAM,cAAc,sBAAiC,eAAe;AAKpE,IAAM,yBAAyB,iCAA4C,eAAe;","names":[]}
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload } from '@xyo-network/payload-model';
2
2
  import { SignatureSchema } from './Schema.ts';
3
3
  export type Digest = 'sha512' | 'sha3-256';
4
4
  export interface SignatureFields {
@@ -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;AAGzD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAM7C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE1C,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,WAAW,wCAAoD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB,0FAA+D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/signature-payload-plugin",
3
- "version": "3.4.3",
3
+ "version": "3.4.5",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,19 +21,19 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/neutral/index.d.ts",
24
+ "types": "./dist/types/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/neutral/index.d.ts",
30
+ "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/payload-model": "^3.9.23"
32
+ "@xyo-network/payload-model": "^3.10.6"
33
33
  },
34
34
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^5.0.39",
36
- "@xylabs/tsconfig": "^5.0.39",
35
+ "@xylabs/ts-scripts-yarn3": "^6.1.13",
36
+ "@xylabs/tsconfig": "^6.1.13",
37
37
  "typescript": "^5.8.2"
38
38
  },
39
39
  "publishConfig": {
package/src/Payload.ts CHANGED
@@ -1,6 +1,5 @@
1
- import {
2
- isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,
3
- } from '@xyo-network/payload-model'
1
+ import type { Payload } from '@xyo-network/payload-model'
2
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
4
3
 
5
4
  import { SignatureSchema } from './Schema.ts'
6
5
 
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAM7C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE1C,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,WAAW,wCAAoD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB,0FAA+D,CAAA"}
File without changes
File without changes
File without changes
File without changes