@textile/threads-id
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -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)),u=r(24);Object.defineProperty(t,"Variant",{enumerable:!0,get:function(){return u.Variant}});class c{constructor(t){this.buf=e.from(t)}static fromRandom(t=c.Variant.Raw,r=32){const n=e.concat([e.from(o.encode(c.V1)),e.from(o.encode(t)),i.default(e.alloc(r))]);return new c(n)}static fromString(t){if(t.length<2)throw new Error("id too short");const r=a.default.decode(e.from(t));return c.fromBytes(r)}static fromBytes(t){let r=e.from(t);const n=o.decode(r);if(1!=n)throw new Error(`expected 1 as the id version number, got: ${n}.`);r=r.slice(o.decode.bytes,r.length);if(!(o.decode(r)in c.Variant))throw new Error("invalid variant.");if(r.slice(o.decode.bytes,r.length).length<16)throw new Error("random component too small.");return new c(e.from(t))}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 c.V1:return a.default.encode(e,this.buf).toString();default:throw new Error("unknown ID version.")}}}t.ThreadID=c,c.V1=1,c.Variant=u.Variant,t.default=c}).call(this,r(0).Buffer)},24: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={}))}}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmV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BTVUsRUFBU2lCLE9BQU9QLE9BQzNCVixFQUFTaUIsT0FBT0UsR0FNM0JmLFNBQVNvQixFQUFPLFVBQ1osT0FBUTdCLEtBQUt5QixXQUNULEtBQUt0QixFQUFTZSxHQUNWLE9BQU9YLEVBQVlMLFFBQVFlLE9BQU9ZLEVBQU03QixLQUFLVSxLQUFLb0IsV0FDdEQsUUFDSSxNQUFNLElBQUlULE1BQU0seUJBSWhDeEQsRUFBUXNDLFNBQVdBLEVBSW5CQSxFQUFTZSxHQUFLLEVBQ2RmLEVBQVNDLFFBQVVJLEVBQVVKLFFBRTdCdkMsRUFBUXFDLFFBQVVDLElBRVd4RCxLQUFLcUQsS0FBTXZDLEVBQW9CLEdBQUdxQyxTQUl6RGlDLEdBQ0EsU0FBVWpFLEVBQVFELEVBQVNKLEdBRWpDLGFBRUFqQixPQUFPOEIsZUFBZVQsRUFBUyxhQUFjLENBQUVlLE9BQU8sSUFDdERmLEVBQVF1QyxhQUFVLEVBTWxCLFNBQVdBLEdBQ1BBLEVBQVFBLEVBQWEsSUFBSSxJQUFNLE1BQy9CQSxFQUFRQSxFQUEwQixpQkFBSSxLQUFPLG1CQUZqRCxDQUdhdkMsRUFBUXVDLFVBQVl2QyxFQUFRdUMsUUFBVSIsImZpbGUiOiIuL21haW4uanMiLCJzb3VyY2VSb290IjoiIn0= | ||
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)),u=r(22);Object.defineProperty(t,"Variant",{enumerable:!0,get:function(){return u.Variant}});class c{constructor(t){this.buf=e.from(t)}static fromRandom(t=c.Variant.Raw,r=32){const n=e.concat([e.from(o.encode(c.V1)),e.from(o.encode(t)),i.default(e.alloc(r))]);return new c(n)}static fromString(t){if(t.length<2)throw new Error("id too short");const r=a.default.decode(e.from(t));return c.fromBytes(r)}static fromBytes(t){let r=e.from(t);const n=o.decode(r);if(1!=n)throw new Error(`expected 1 as the id version number, got: ${n}.`);r=r.slice(o.decode.bytes,r.length);if(!(o.decode(r)in c.Variant))throw new Error("invalid variant.");if(r.slice(o.decode.bytes,r.length).length<16)throw new Error("random component too small.");return new c(e.from(t))}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 c.V1:return a.default.encode(e,this.buf).toString();default:throw new Error("unknown ID version.")}}}t.ThreadID=c,c.V1=1,c.Variant=u.Variant,t.default=c}).call(this,r(0).Buffer)},22: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={}))}}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdXNoIiwicGFyZW50SnNvbnBGdW5jdGlvbiIsInNoaWZ0IiwiZGVmZXJyZWRNb2R1bGVzIiwiYXBwbHkiLCJjaGVja0RlZmVycmVkTW9kdWxlcyIsInJlc3VsdCIsImRlZmVycmVkTW9kdWxlIiwiZnVsZmlsbGVkIiwiaiIsImRlcElkIiwic3BsaWNlIiwiX193ZWJwYWNrX3JlcXVpcmVfXyIsInMiLCJpbnN0YWxsZWRNb2R1bG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EdBQ0EsU0FBVWpFLEVBQVFELEVBQVNKLEdBRWpDLGFBRUFqQixPQUFPOEIsZUFBZVQsRUFBUyxhQUFjLENBQUVlLE9BQU8sSUFDdERmLEVBQVF1QyxhQUFVLEVBTWxCLFNBQVdBLEdBQ1BBLEVBQVFBLEVBQWEsSUFBSSxJQUFNLE1BQy9CQSxFQUFRQSxFQUEwQixpQkFBSSxLQUFPLG1CQUZqRCxDQUdhdkMsRUFBUXVDLFVBQVl2QyxFQUFRdUMsUUFBVSIsImZpbGUiOiIuL21haW4uanMiLCJzb3VyY2VSb290IjoiIn0= |
{ | ||
"name": "@textile/threads-id", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"main": "dist/index", | ||
@@ -34,6 +34,6 @@ "types": "dist/index", | ||
"@consento/sync-randombytes": "^1.0.4", | ||
"multibase": "^0.7.0", | ||
"multibase": "^1.0.1", | ||
"varint": "^5.0.0" | ||
}, | ||
"gitHead": "439015241d89105cfb39e1e33a75fcf88cd682d4" | ||
"gitHead": "07379aab4dd2b7e4aaa29091ce064eb659aaeb09" | ||
} |
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
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
440
138674
+ Addedmultibase@1.0.1(transitive)
- Removedmultibase@0.7.0(transitive)
Updatedmultibase@^1.0.1