@textile/context
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -120,2 +120,5 @@ "use strict"; | ||
return this; | ||
// Enables the use of insecure / non-signing keys | ||
if (key.secret === '') | ||
return this.withAPIKey(key.key); | ||
const sig = yield security_1.createAPISig(key.secret, date); | ||
@@ -122,0 +125,0 @@ return this.withAPIKey(key.key).withAPISig(sig); |
@@ -1,2 +0,2 @@ | ||
var threads=function(t){function e(e){for(var n,s,a=e[0],h=e[1],c=e[2],l=0,d=[];l<a.length;l++)s=a[l],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&d.push(o[s][0]),o[s]=0;for(n in h)Object.prototype.hasOwnProperty.call(h,n)&&(t[n]=h[n]);for(u&&u(e);d.length;)d.shift()();return i.push.apply(i,c||[]),r()}function r(){for(var t,e=0;e<i.length;e++){for(var r=i[e],n=!0,a=1;a<r.length;a++){var h=r[a];0!==o[h]&&(n=!1)}n&&(i.splice(e--,1),t=s(s.s=r[0]))}return t}var n={},o={0:0},i=[];function s(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=t,s.c=n,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="";var a=window.webpackJsonpthreads=window.webpackJsonpthreads||[],h=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var u=h;return i.push([1,1]),r()}([,function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{h(n.next(t))}catch(t){i(t)}}function a(t){try{h(n.throw(t))}catch(t){i(t)}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}h((n=n.apply(t,e||[])).next())}))},o=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.Context=e.defaultHost=void 0;const i=r(2),s=r(3);e.defaultHost="https://api.textile.io:3447";class a{constructor(t=e.defaultHost,r=!1,n=i.grpc.WebsocketTransport()){this._context={},this._context.host=t,this._context.transport=n,this._context.debug=r}static fromUserAuth(t,r=e.defaultHost,n=!1,s=i.grpc.WebsocketTransport()){const h=new a(r,n,s),{key:c,token:u}=t,l=o(t,["key","token"]);return h.withAPIKey(c).withAPISig(l).withToken(u)}static fromUserAuthCallback(t,r=e.defaultHost,n=!1,o=i.grpc.WebsocketTransport()){const s=new a(r,n,o);return s.authCallback=t,s}get host(){return this._context.host}get transport(){return this._context.transport}get debug(){return this._context.debug}set(t,e){return this._context[t]=e,this}get(t){return this._context[t]}withSession(t){return void 0===t||(this._context["x-textile-session"]=t),this}withThread(t){return void 0===t||(this._context["x-textile-thread"]=t.toString()),this}withThreadName(t){return void 0===t||(this._context["x-textile-thread-name"]=t),this}withOrg(t){return void 0===t||(this._context["x-textile-org"]=t),this}withToken(t){return void 0===t||(this._context.authorization="bearer "+t),this}withAPIKey(t){return void 0===t||(this._context["x-textile-api-key"]=t),this}withAPISig(t){if(void 0===t)return this;const{sig:e,msg:r}=t;return this._context["x-textile-api-sig-msg"]=r,this._context["x-textile-api-sig"]=e,this}withKeyInfo(t,e){return n(this,void 0,void 0,(function*(){if(void 0===t)return this;const r=yield s.createAPISig(t.secret,e);return this.withAPIKey(t.key).withAPISig(r)}))}withContext(t){return void 0===t||(this._context=t.toJSON()),this}get isExpired(){const t=this.get("x-textile-api-sig-msg"),e=void 0===t&&void 0!==this.authCallback;return void 0!==t&&new Date(t)<=new Date||e}refreshUserAuth(t){return n(this,void 0,void 0,(function*(){if(void 0!==t&&(this.authCallback=t),void 0===this.authCallback)throw new Error("Missing authCallback. See Context.fromUserAuthCallback for details.");const e=yield this.authCallback(),{key:r,token:n}=e,i=o(e,["key","token"]);return this.withAPIKey(r).withAPISig(i).withToken(n)}))}toJSON(){const t=this._context,{transport:e}=t,r=o(t,["transport"]);if(this.isExpired)throw s.expirationError;return r}toMetadata(t){return n(this,void 0,void 0,(function*(){const e=new a;if(this.isExpired&&void 0!==this.authCallback){const t=yield this.authCallback(),{key:e,token:r}=t,n=o(t,["key","token"]);this.withAPIKey(e).withAPISig(n).withToken(r)}return new i.grpc.Metadata(e.withContext(this).withContext(t).toJSON())}))}static fromJSON(t,r=e.defaultHost,n=!1,o=i.grpc.WebsocketTransport()){const s=Object.assign({},t);s.host=r,s.transport=o,s.debug=n;const h=new a;return h._context=s,h}}e.Context=a}]); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMi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QixFQUNSeEIsR0FHZjlELEVBQVFrRCxRQUFVQSIsImZpbGUiOiIuL21haW4uanMiLCJzb3VyY2VSb290IjoiIn0= | ||
var threads=function(t){function e(e){for(var n,s,a=e[0],h=e[1],c=e[2],l=0,f=[];l<a.length;l++)s=a[l],Object.prototype.hasOwnProperty.call(i,s)&&i[s]&&f.push(i[s][0]),i[s]=0;for(n in h)Object.prototype.hasOwnProperty.call(h,n)&&(t[n]=h[n]);for(u&&u(e);f.length;)f.shift()();return o.push.apply(o,c||[]),r()}function r(){for(var t,e=0;e<o.length;e++){for(var r=o[e],n=!0,a=1;a<r.length;a++){var h=r[a];0!==i[h]&&(n=!1)}n&&(o.splice(e--,1),t=s(s.s=r[0]))}return t}var n={},i={0:0},o=[];function s(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=t,s.c=n,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="";var a=window.webpackJsonpthreads=window.webpackJsonpthreads||[],h=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var u=h;return o.push([1,1]),r()}([,function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{h(n.next(t))}catch(t){o(t)}}function a(t){try{h(n.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}h((n=n.apply(t,e||[])).next())}))},i=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.Context=e.defaultHost=void 0;const o=r(2),s=r(3);e.defaultHost="https://api.textile.io:3447";class a{constructor(t=e.defaultHost,r=!1,n=o.grpc.WebsocketTransport()){this._context={},this._context.host=t,this._context.transport=n,this._context.debug=r}static fromUserAuth(t,r=e.defaultHost,n=!1,s=o.grpc.WebsocketTransport()){const h=new a(r,n,s),{key:c,token:u}=t,l=i(t,["key","token"]);return h.withAPIKey(c).withAPISig(l).withToken(u)}static fromUserAuthCallback(t,r=e.defaultHost,n=!1,i=o.grpc.WebsocketTransport()){const s=new a(r,n,i);return s.authCallback=t,s}get host(){return this._context.host}get transport(){return this._context.transport}get debug(){return this._context.debug}set(t,e){return this._context[t]=e,this}get(t){return this._context[t]}withSession(t){return void 0===t||(this._context["x-textile-session"]=t),this}withThread(t){return void 0===t||(this._context["x-textile-thread"]=t.toString()),this}withThreadName(t){return void 0===t||(this._context["x-textile-thread-name"]=t),this}withOrg(t){return void 0===t||(this._context["x-textile-org"]=t),this}withToken(t){return void 0===t||(this._context.authorization="bearer "+t),this}withAPIKey(t){return void 0===t||(this._context["x-textile-api-key"]=t),this}withAPISig(t){if(void 0===t)return this;const{sig:e,msg:r}=t;return this._context["x-textile-api-sig-msg"]=r,this._context["x-textile-api-sig"]=e,this}withKeyInfo(t,e){return n(this,void 0,void 0,(function*(){if(void 0===t)return this;if(""===t.secret)return this.withAPIKey(t.key);const r=yield s.createAPISig(t.secret,e);return this.withAPIKey(t.key).withAPISig(r)}))}withContext(t){return void 0===t||(this._context=t.toJSON()),this}get isExpired(){const t=this.get("x-textile-api-sig-msg"),e=void 0===t&&void 0!==this.authCallback;return void 0!==t&&new Date(t)<=new Date||e}refreshUserAuth(t){return n(this,void 0,void 0,(function*(){if(void 0!==t&&(this.authCallback=t),void 0===this.authCallback)throw new Error("Missing authCallback. See Context.fromUserAuthCallback for details.");const e=yield this.authCallback(),{key:r,token:n}=e,o=i(e,["key","token"]);return this.withAPIKey(r).withAPISig(o).withToken(n)}))}toJSON(){const t=this._context,{transport:e}=t,r=i(t,["transport"]);if(this.isExpired)throw s.expirationError;return r}toMetadata(t){return n(this,void 0,void 0,(function*(){const e=new a;if(this.isExpired&&void 0!==this.authCallback){const t=yield this.authCallback(),{key:e,token:r}=t,n=i(t,["key","token"]);this.withAPIKey(e).withAPISig(n).withToken(r)}return new o.grpc.Metadata(e.withContext(this).withContext(t).toJSON())}))}static fromJSON(t,r=e.defaultHost,n=!1,i=o.grpc.WebsocketTransport()){const s=Object.assign({},t);s.host=r,s.transport=i,s.debug=n;const h=new a;return h._context=s,h}}e.Context=a}]); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdX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VFrRCxRQUFVQSIsImZpbGUiOiIuL21haW4uanMiLCJzb3VyY2VSb290IjoiIn0= |
{ | ||
"name": "@textile/context", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"main": "dist/index", | ||
@@ -40,5 +40,5 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@textile/security": "^0.1.8" | ||
"@textile/security": "^0.2.0" | ||
}, | ||
"gitHead": "42b82de49af1cf3552d6c1daa99324eafda0117d" | ||
"gitHead": "73e3fad326597c3b2f7d52af10720b7bdb1ce429" | ||
} |
Sorry, the diff of this file is not supported yet
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
222151
679
+ Added@textile/security@0.2.8(transitive)
- Removed@textile/security@0.1.8(transitive)
Updated@textile/security@^0.2.0