@xyo-network/signature-payload-plugin 3.1.2 → 3.2.0-rc.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.
@@ -27,10 +27,4 @@ export declare const isSignature: (x?: unknown | null) => x is import("@xyo-netw
27
27
  export declare const isSignatureWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SignatureFields & {
28
28
  schema: "network.xyo.signing.signature";
29
29
  }>;
30
- /**
31
- * Identity function for determine if an object is a Signature with meta
32
- */
33
- export declare const isSignatureWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SignatureFields & {
34
- schema: "network.xyo.signing.signature";
35
- }>;
36
30
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,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;;CAAoD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB;;EAA+D,CAAA;AAElG;;GAEG;AACH,eAAO,MAAM,mBAAmB;;EAA4D,CAAA"}
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;;CAAoD,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB;;EAA+D,CAAA"}
@@ -1,9 +1,5 @@
1
1
  // src/Payload.ts
2
- import {
3
- isPayloadOfSchemaType,
4
- isPayloadOfSchemaTypeWithMeta,
5
- isPayloadOfSchemaTypeWithSources
6
- } from "@xyo-network/payload-model";
2
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
7
3
 
8
4
  // src/Schema.ts
9
5
  var SignatureSchema = "network.xyo.signing.signature";
@@ -11,11 +7,9 @@ var SignatureSchema = "network.xyo.signing.signature";
11
7
  // src/Payload.ts
12
8
  var isSignature = isPayloadOfSchemaType(SignatureSchema);
13
9
  var isSignatureWithSources = isPayloadOfSchemaTypeWithSources(SignatureSchema);
14
- var isSignatureWithMeta = isPayloadOfSchemaTypeWithMeta(SignatureSchema);
15
10
  export {
16
11
  SignatureSchema,
17
12
  isSignature,
18
- isSignatureWithMeta,
19
13
  isSignatureWithSources
20
14
  };
21
15
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,\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\n/**\n * Identity function for determine if an object is a Signature with meta\n */\nexport const isSignatureWithMeta = isPayloadOfSchemaTypeWithMeta<Signature>(SignatureSchema)\n","export const SignatureSchema = 'network.xyo.signing.signature' as const\nexport type SignatureSchema = typeof SignatureSchema\n"],"mappings":";AACA;AAAA,EACE;AAAA,EAAuB;AAAA,EAA+B;AAAA,OACjD;;;ACHA,IAAM,kBAAkB;;;ADgCxB,IAAM,cAAc,sBAAiC,eAAe;AAKpE,IAAM,yBAAyB,iCAA4C,eAAe;AAK1F,IAAM,sBAAsB,8BAAyC,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":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/signature-payload-plugin",
3
- "version": "3.1.2",
3
+ "version": "3.2.0-rc.1",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,7 +29,7 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/payload-model": "^3.5.1"
32
+ "@xyo-network/payload-model": "^3.6.0-rc.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@xylabs/ts-scripts-yarn3": "^4.2.4",
@@ -38,5 +38,6 @@
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
- }
41
+ },
42
+ "stableVersion": "3.1.2"
42
43
  }
package/src/Payload.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import type { Payload } from '@xyo-network/payload-model'
2
- import {
3
- isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,
4
- } from '@xyo-network/payload-model'
2
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
5
3
 
6
4
  import { SignatureSchema } from './Schema.ts'
7
5
 
@@ -36,8 +34,3 @@ export const isSignature = isPayloadOfSchemaType<Signature>(SignatureSchema)
36
34
  * Identity function for determine if an object is a Signature with sources
37
35
  */
38
36
  export const isSignatureWithSources = isPayloadOfSchemaTypeWithSources<Signature>(SignatureSchema)
39
-
40
- /**
41
- * Identity function for determine if an object is a Signature with meta
42
- */
43
- export const isSignatureWithMeta = isPayloadOfSchemaTypeWithMeta<Signature>(SignatureSchema)