@textile/threads-id
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -1,80 +0,2 @@ | ||
/// <reference types="node" /> | ||
import { name as Name } from 'multibase'; | ||
/** | ||
* Variant denotes Thread variant. Currently only two variants are supported. | ||
*/ | ||
export declare enum Variant { | ||
Raw = 85, | ||
AccessControlled = 112 | ||
} | ||
/** | ||
* ThreadID represents a self-describing Thread identifier. | ||
* It is formed by a Version, a Variant, and a random number of a given length. | ||
*/ | ||
export declare class ThreadID { | ||
readonly buf: Buffer; | ||
constructor(buf: Uint8Array); | ||
/** | ||
* Versions. Currently only V1 is supported. | ||
*/ | ||
static V1: number; | ||
static Variant: typeof Variant; | ||
/** | ||
* fromRandom creates a new random ID object. | ||
* @param variant The Thread variant to use. @see Variant | ||
* @param size The size of the random component to use. Defaults to 32 bytes. | ||
*/ | ||
static fromRandom(variant?: Variant, size?: number): ThreadID; | ||
/** | ||
* fromString parses an ID-encoded string and returns an ID object. | ||
* For IDV1, an ID-encoded string is primarily a multibase string: | ||
* <multibase-type-code><base-encoded-string> | ||
* The base-encoded string represents a: | ||
* <version><variant><random-number> | ||
* @param v The input encoded Thread ID. | ||
*/ | ||
static fromString(v: string | Uint8Array): ThreadID; | ||
/** | ||
* fromBytes takes an ID data slice, parses it and returns an ID. | ||
* For IDV1, the data buffer is in the form: | ||
* <version><variant><random-number> | ||
* Please use fromEncoded when parsing a regular ID string, as fromBytes does not | ||
* expect multibase-encoded data. fromBytes accepts the output of ID.bytes(). | ||
* @param data The input Thread ID bytes. | ||
*/ | ||
static fromBytes(data: Uint8Array): ThreadID; | ||
/** | ||
* getEncoding returns the multibase encoding for a multibase encoded string. | ||
* Returns the name of the encoding if it is encoded, and throws an error otherwise. | ||
* @param v The Thread ID to check. | ||
*/ | ||
static getEncoding(v: string): string; | ||
/** | ||
* isDefined returns true if an ID is defined. | ||
* Calling any other methods on an undefined ID will result in undefined behavior. | ||
*/ | ||
isDefined(): boolean; | ||
/** | ||
* toBytes returns the byte representation of an ID. | ||
* The output of bytes can be parsed back into an ID with fromBytes. | ||
*/ | ||
toBytes(): Buffer; | ||
/** | ||
* equals checks that two IDs are the same. | ||
* @param o The other Thread ID. | ||
*/ | ||
equals(o: ThreadID): boolean; | ||
/** | ||
* version returns the ID version. | ||
*/ | ||
version(): number; | ||
/** | ||
* variant returns the variant of an ID. | ||
*/ | ||
variant(): number; | ||
/** | ||
* toString returns the (multibase encoded) string representation of an ID. | ||
* @param base Name of the base to use for encoding. Defaults to 'base32'. | ||
*/ | ||
toString(base?: Name): string; | ||
} | ||
export { Variant } from './variant'; | ||
export { ThreadID } from './thread-id'; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ThreadID = exports.Variant = void 0; | ||
const varint_1 = require("varint"); | ||
const sync_randombytes_1 = __importDefault(require("@consento/sync-randombytes")); | ||
const multibase_1 = __importDefault(require("multibase")); | ||
/** | ||
* Variant denotes Thread variant. Currently only two variants are supported. | ||
*/ | ||
var Variant; | ||
(function (Variant) { | ||
Variant[Variant["Raw"] = 85] = "Raw"; | ||
Variant[Variant["AccessControlled"] = 112] = "AccessControlled"; | ||
})(Variant = exports.Variant || (exports.Variant = {})); | ||
/** | ||
* ThreadID represents a self-describing Thread identifier. | ||
* It is formed by a Version, a Variant, and a random number of a given length. | ||
*/ | ||
class ThreadID { | ||
constructor(buf) { | ||
this.buf = Buffer.from(buf); | ||
} | ||
/** | ||
* fromRandom creates a new random ID object. | ||
* @param variant The Thread variant to use. @see Variant | ||
* @param size The size of the random component to use. Defaults to 32 bytes. | ||
*/ | ||
static fromRandom(variant = ThreadID.Variant.Raw, size = 32) { | ||
// two 8 bytes (max) numbers plus random bytes | ||
const bytes = Buffer.concat([ | ||
Buffer.from(varint_1.encode(ThreadID.V1)), | ||
Buffer.from(varint_1.encode(variant)), | ||
sync_randombytes_1.default(Buffer.alloc(size)), | ||
]); | ||
return new ThreadID(bytes); | ||
} | ||
/** | ||
* fromString parses an ID-encoded string and returns an ID object. | ||
* For IDV1, an ID-encoded string is primarily a multibase string: | ||
* <multibase-type-code><base-encoded-string> | ||
* The base-encoded string represents a: | ||
* <version><variant><random-number> | ||
* @param v The input encoded Thread ID. | ||
*/ | ||
static fromString(v) { | ||
if (v.length < 2) { | ||
throw new Error('id too short'); | ||
} | ||
const data = multibase_1.default.decode(Buffer.from(v)); | ||
return ThreadID.fromBytes(data); | ||
} | ||
/** | ||
* fromBytes takes an ID data slice, parses it and returns an ID. | ||
* For IDV1, the data buffer is in the form: | ||
* <version><variant><random-number> | ||
* Please use fromEncoded when parsing a regular ID string, as fromBytes does not | ||
* expect multibase-encoded data. fromBytes accepts the output of ID.bytes(). | ||
* @param data The input Thread ID bytes. | ||
*/ | ||
static fromBytes(data) { | ||
let copy = Buffer.from(data); | ||
const version = varint_1.decode(copy); | ||
if (version != 1) { | ||
throw new Error(`expected 1 as the id version number, got: ${version}.`); | ||
} | ||
copy = copy.slice(varint_1.decode.bytes, copy.length); | ||
const variant = varint_1.decode(copy); | ||
if (!(variant in ThreadID.Variant)) { | ||
throw new Error('invalid variant.'); | ||
} | ||
const id = copy.slice(varint_1.decode.bytes, copy.length); | ||
if (id.length < 16) { | ||
throw new Error('random component too small.'); | ||
} | ||
return new ThreadID(Buffer.from(data)); | ||
} | ||
/** | ||
* getEncoding returns the multibase encoding for a multibase encoded string. | ||
* Returns the name of the encoding if it is encoded, and throws an error otherwise. | ||
* @param v The Thread ID to check. | ||
*/ | ||
static getEncoding(v) { | ||
if (v.length < 2) { | ||
throw new Error('Too Short'); | ||
} | ||
const encoding = multibase_1.default.isEncoded(v); | ||
// check encoding is valid | ||
if (encoding === false) { | ||
throw new Error('Invalid Encoding'); | ||
} | ||
return encoding; | ||
} | ||
/** | ||
* isDefined returns true if an ID is defined. | ||
* Calling any other methods on an undefined ID will result in undefined behavior. | ||
*/ | ||
isDefined() { | ||
return this.buf.length > 0; | ||
} | ||
/** | ||
* toBytes returns the byte representation of an ID. | ||
* The output of bytes can be parsed back into an ID with fromBytes. | ||
*/ | ||
toBytes() { | ||
return Buffer.from(this.buf); | ||
} | ||
/** | ||
* equals checks that two IDs are the same. | ||
* @param o The other Thread ID. | ||
*/ | ||
equals(o) { | ||
return this.buf.equals(o.buf); | ||
} | ||
/** | ||
* version returns the ID version. | ||
*/ | ||
version() { | ||
return varint_1.decode(this.buf); | ||
} | ||
/** | ||
* variant returns the variant of an ID. | ||
*/ | ||
variant() { | ||
let copy = Buffer.from(this.buf); | ||
varint_1.decode(copy); | ||
copy = copy.slice(varint_1.decode.bytes); | ||
return varint_1.decode(copy); | ||
} | ||
/** | ||
* toString returns the (multibase encoded) string representation of an ID. | ||
* @param base Name of the base to use for encoding. Defaults to 'base32'. | ||
*/ | ||
toString(base = 'base32') { | ||
switch (this.version()) { | ||
case ThreadID.V1: | ||
return multibase_1.default.encode(base, this.buf).toString(); | ||
default: | ||
throw new Error('unknown ID version.'); | ||
} | ||
} | ||
} | ||
exports.ThreadID = ThreadID; | ||
/** | ||
* Versions. Currently only V1 is supported. | ||
*/ | ||
ThreadID.V1 = 0x01; | ||
ThreadID.Variant = Variant; | ||
var variant_1 = require("./variant"); | ||
Object.defineProperty(exports, "Variant", { enumerable: true, get: function () { return variant_1.Variant; } }); | ||
var thread_id_1 = require("./thread-id"); | ||
Object.defineProperty(exports, "ThreadID", { enumerable: true, get: function () { return thread_id_1.ThreadID; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var threads=function(e){function t(t){for(var n,a,u=t[0],c=t[1],s=t[2],l=0,d=[];l<u.length;l++)a=u[l],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&d.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);d.length;)d.shift()();return i.push.apply(i,s||[]),r()}function r(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,u=1;u<r.length;u++){var c=r[u];0!==o[c]&&(n=!1)}n&&(i.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},o={0:0},i=[];function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var u=window.webpackJsonpthreads=window.webpackJsonpthreads||[],c=u.push.bind(u);u.push=t,u=u.slice();for(var s=0;s<u.length;s++)t(u[s]);var f=c;return i.push([2,1]),r()}({15:function(e,t){},2:function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThreadID=t.Variant=void 0;const o=r(6),i=n(r(10)),a=n(r(16));var u;!function(e){e[e.Raw=85]="Raw",e[e.AccessControlled=112]="AccessControlled"}(u=t.Variant||(t.Variant={}));let c=(()=>{class t{constructor(t){this.buf=e.from(t)}static fromRandom(r=t.Variant.Raw,n=32){const a=e.concat([e.from(o.encode(t.V1)),e.from(o.encode(r)),i.default(e.alloc(n))]);return new t(a)}static fromString(r){if(r.length<2)throw new Error("id too short");const n=a.default.decode(e.from(r));return t.fromBytes(n)}static fromBytes(r){let n=e.from(r);const i=o.decode(n);if(1!=i)throw new Error(`expected 1 as the id version number, got: ${i}.`);n=n.slice(o.decode.bytes,n.length);if(!(o.decode(n)in t.Variant))throw new Error("invalid variant.");if(n.slice(o.decode.bytes,n.length).length<16)throw new Error("random component too small.");return new t(e.from(r))}static getEncoding(e){if(e.length<2)throw new Error("Too Short");const t=a.default.isEncoded(e);if(!1===t)throw new Error("Invalid Encoding");return t}isDefined(){return this.buf.length>0}toBytes(){return e.from(this.buf)}equals(e){return this.buf.equals(e.buf)}version(){return o.decode(this.buf)}variant(){let t=e.from(this.buf);return o.decode(t),t=t.slice(o.decode.bytes),o.decode(t)}toString(e="base32"){switch(this.version()){case t.V1:return a.default.encode(e,this.buf).toString();default:throw new Error("unknown ID version.")}}}return t.V1=1,t.Variant=u,t})();t.ThreadID=c}).call(this,r(0).Buffer)}}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdXNoIiwicGFyZW50SnNvbnBGdW5jdGlvbiIsInNoaWZ0IiwiZGVmZXJyZWRNb2R1bGVzIiwiYXBwbHkiLCJjaGVja0RlZmVycmVkTW9kdWxlcyIsInJlc3VsdCIsImRlZmVycmVkTW9kdWxlIiwiZnVsZmlsbGVkIiwiaiIsImRlcElkIiwic3BsaWNlIiwiX193ZWJwYWNrX3JlcXVpcmVf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QUFXQSxJQUVVeEQsS0FBS3FELEtBQU12QyxFQUFvQixHQUFHcUMiLCJmaWxlIjoiLi9tYWluLmpzIiwic291cmNlUm9vdCI6IiJ9 | ||
var threads=function(e){function t(t){for(var n,u,a=t[0],c=t[1],s=t[2],l=0,d=[];l<a.length;l++)u=a[l],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&d.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);d.length;)d.shift()();return i.push.apply(i,s||[]),r()}function r(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(i.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={0:0},i=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="";var a=window.webpackJsonpthreads=window.webpackJsonpthreads||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var f=c;return i.push([3,1]),r()}({1:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Variant=void 0,function(e){e[e.Raw=85]="Raw",e[e.AccessControlled=112]="AccessControlled"}(t.Variant||(t.Variant={}))},17:function(e,t){},3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);Object.defineProperty(t,"Variant",{enumerable:!0,get:function(){return n.Variant}});var o=r(4);Object.defineProperty(t,"ThreadID",{enumerable:!0,get:function(){return o.ThreadID}})},4:function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThreadID=void 0;const o=r(8),i=n(r(12)),u=n(r(18)),a=r(1);let c=(()=>{class t{constructor(t){this.buf=e.from(t)}static fromRandom(r=t.Variant.Raw,n=32){const u=e.concat([e.from(o.encode(t.V1)),e.from(o.encode(r)),i.default(e.alloc(n))]);return new t(u)}static fromString(r){if(r.length<2)throw new Error("id too short");const n=u.default.decode(e.from(r));return t.fromBytes(n)}static fromBytes(r){let n=e.from(r);const i=o.decode(n);if(1!=i)throw new Error(`expected 1 as the id version number, got: ${i}.`);n=n.slice(o.decode.bytes,n.length);if(!(o.decode(n)in t.Variant))throw new Error("invalid variant.");if(n.slice(o.decode.bytes,n.length).length<16)throw new Error("random component too small.");return new t(e.from(r))}static getEncoding(e){if(e.length<2)throw new Error("Too Short");const t=u.default.isEncoded(e);if(!1===t)throw new Error("Invalid Encoding");return t}isDefined(){return this.buf.length>0}toBytes(){return e.from(this.buf)}equals(e){return this.buf.equals(e.buf)}version(){return o.decode(this.buf)}variant(){let t=e.from(this.buf);return o.decode(t),t=t.slice(o.decode.bytes),o.decode(t)}toString(e="base32"){switch(this.version()){case t.V1:return u.default.encode(e,this.buf).toString();default:throw new Error("unknown ID version.")}}}return t.V1=1,t.Variant=a.Variant,t})();t.ThreadID=c}).call(this,r(0).Buffer)}}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlY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dCckMsRUFBUXFDLFNBQVdBLElBRVV2RCxLQUFLMkQsS0FBTTdDLEVBQW9CLEdBQUcyQyIsImZpbGUiOiIuL21haW4uanMiLCJzb3VyY2VSb290IjoiIn0= |
{ | ||
"name": "@textile/threads-id", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "dist/index", | ||
@@ -37,3 +37,3 @@ "types": "dist/index", | ||
}, | ||
"gitHead": "70e27fb5f7552b987a646c5415ab684275982041" | ||
"gitHead": "165f11da661e57db4a0bad9d1ea106c4400c1dd7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140074
14
439
1