Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@textile/context

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textile/context - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

27

dist/index.d.ts

@@ -65,6 +65,27 @@ import { grpc } from '@improbable-eng/grpc-web';

}
export interface Context {
host: HostString;
debug: boolean;
transport: grpc.TransportFactory;
withSession(value?: string): Context;
withThread(value?: ThreadID): Context;
withThreadName(value?: string): Context;
withOrg(value?: string): Context;
withToken(value?: string): Context;
withAPIKey(value?: string): Context;
withAPISig(value?: {
sig: string;
msg: string;
}): Context;
withContext(value?: Context): Context;
toJSON(): any;
toMetadata(): grpc.Metadata;
withUserKey(key?: KeyInfo, date?: Date): Promise<Context>;
set(key: keyof ContextKeys, value?: any): Context;
get(key: keyof ContextKeys): any;
}
/**
* Context provides context management for gRPC credentials and config settings.
* Provider provides context management for gRPC credentials and config settings.
*/
export declare class Context {
export declare class Provider implements Context {
private _context;

@@ -93,5 +114,5 @@ constructor(host?: HostString, debug?: boolean, transport?: grpc.TransportFactory);

toMetadata(): grpc.Metadata;
static fromJSON(json: ContextKeys, host?: HostString, debug?: boolean, transport?: grpc.TransportFactory): Context;
static fromJSON(json: ContextKeys, host?: HostString, debug?: boolean, transport?: grpc.TransportFactory): Provider;
withUserKey(key?: KeyInfo, date?: Date): Promise<this>;
}
export {};

10

dist/index.js

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Context = exports.createAPISig = exports.expirationError = exports.defaultHost = void 0;
exports.Provider = exports.createAPISig = exports.expirationError = exports.defaultHost = void 0;
const grpc_web_1 = require("@improbable-eng/grpc-web");

@@ -42,5 +42,5 @@ const fast_sha256_1 = require("fast-sha256");

/**
* Context provides context management for gRPC credentials and config settings.
* Provider provides context management for gRPC credentials and config settings.
*/
class Context {
class Provider {
constructor(

@@ -143,3 +143,3 @@ // To comply with Config interface

newContext['debug'] = debug;
const ctx = new Context();
const ctx = new Provider();
ctx._context = newContext;

@@ -157,3 +157,3 @@ return ctx;

}
exports.Context = Context;
exports.Provider = Provider;
//# sourceMappingURL=index.js.map

@@ -16,3 +16,3 @@ "use strict";

it('should throw an exception when working with an expired msg', () => __awaiter(void 0, void 0, void 0, function* () {
const context = new index_1.Context();
const context = new index_1.Provider();
try {

@@ -19,0 +19,0 @@ context.withAPISig({

@@ -1,2 +0,2 @@

var threads=function(t){function e(e){for(var n,s,a=e[0],u=e[1],c=e[2],l=0,f=[];l<a.length;l++)s=a[l],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&f.push(o[s][0]),o[s]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t[n]=u[n]);for(h&&h(e);f.length;)f.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 u=r[a];0!==o[u]&&(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||[],u=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var h=u;return i.push([1,1]),r()}([,function(t,e,r){"use strict";(function(t){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((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},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Context=e.createAPISig=e.expirationError=e.defaultHost=void 0;const s=r(6),a=r(7),u=i(r(8));e.defaultHost="https://api.textile.io:3447",e.expirationError=new Error("Context expired. Consider calling withUserKey or withAPISig to refresh."),e.createAPISig=(e,r=new Date(Date.now()+6e4))=>n(void 0,void 0,void 0,(function*(){const n=u.default.decode(e),o=(null!=r?r:new Date).toISOString(),i=new a.HMAC(n).update(t.from(o)).digest();return{sig:u.default.encode("base32",t.from(i)).toString(),msg:o}}));class c{constructor(t=e.defaultHost,r=!1,n=s.grpc.WebsocketTransport()){this._context={},this._context.host=t,this._context.transport=n,this._context.debug=r}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}withContext(t){return void 0===t||(this._context=t.toJSON()),this}toJSON(){const t=this._context,{transport:r}=t,n=o(t,["transport"]),i=n["x-textile-api-sig-msg"];if(i&&new Date(i)<=new Date)throw e.expirationError;return n}toMetadata(){return new s.grpc.Metadata(this.toJSON())}static fromJSON(t,r=e.defaultHost,n=!1,o=s.grpc.WebsocketTransport()){const i=Object.assign({},t);i.host=r,i.transport=o,i.debug=n;const a=new c;return a._context=i,a}withUserKey(t,r){return n(this,void 0,void 0,(function*(){if(void 0===t)return this;const n=yield e.createAPISig(t.secret,r);return this.withAPIKey(t.key).withAPISig(n)}))}}e.Context=c}).call(this,r(0).Buffer)}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdXNoIiwicGFyZW50SnNvbnBGdW5jdGlvbiIsInNoaWZ0IiwiZGVmZXJyZWRNb2R1bGVzIiwiYXBwbHkiLCJjaGVja0RlZmVycmVkT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FBSzBDLEdBQ2IsT0FBTy9CLEVBQVVDLFVBQU0sT0FBUSxHQUFRLFlBQ25DLFFBQVlvRCxJQUFSaEUsRUFDQSxPQUFPWSxLQUNYLE1BQU0wQyxRQUFZM0UsRUFBUXVELGFBQWFsQyxFQUFJeUMsT0FBUUMsR0FDbkQsT0FBTzlCLEtBQUs2RCxXQUFXekUsRUFBSUEsS0FBSzBFLFdBQVdwQixPQUl2RDNFLEVBQVFzRCxRQUFVQSxJQUVXeEUsS0FBS21ELEtBQU1yQyxFQUFvQixHQUFHbUMiLCJmaWxlIjoiLi9tYWluLmpzIiwic291cmNlUm9vdCI6IiJ9
var threads=function(t){function e(e){for(var n,s,a=e[0],u=e[1],c=e[2],l=0,f=[];l<a.length;l++)s=a[l],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&f.push(o[s][0]),o[s]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t[n]=u[n]);for(h&&h(e);f.length;)f.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 u=r[a];0!==o[u]&&(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||[],u=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var h=u;return i.push([1,1]),r()}([,function(t,e,r){"use strict";(function(t){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((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},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Provider=e.createAPISig=e.expirationError=e.defaultHost=void 0;const s=r(6),a=r(7),u=i(r(8));e.defaultHost="https://api.textile.io:3447",e.expirationError=new Error("Context expired. Consider calling withUserKey or withAPISig to refresh."),e.createAPISig=(e,r=new Date(Date.now()+6e4))=>n(void 0,void 0,void 0,(function*(){const n=u.default.decode(e),o=(null!=r?r:new Date).toISOString(),i=new a.HMAC(n).update(t.from(o)).digest();return{sig:u.default.encode("base32",t.from(i)).toString(),msg:o}}));class c{constructor(t=e.defaultHost,r=!1,n=s.grpc.WebsocketTransport()){this._context={},this._context.host=t,this._context.transport=n,this._context.debug=r}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}withContext(t){return void 0===t||(this._context=t.toJSON()),this}toJSON(){const t=this._context,{transport:r}=t,n=o(t,["transport"]),i=n["x-textile-api-sig-msg"];if(i&&new Date(i)<=new Date)throw e.expirationError;return n}toMetadata(){return new s.grpc.Metadata(this.toJSON())}static fromJSON(t,r=e.defaultHost,n=!1,o=s.grpc.WebsocketTransport()){const i=Object.assign({},t);i.host=r,i.transport=o,i.debug=n;const a=new c;return a._context=i,a}withUserKey(t,r){return n(this,void 0,void 0,(function*(){if(void 0===t)return this;const n=yield e.createAPISig(t.secret,r);return this.withAPIKey(t.key).withAPISig(n)}))}}e.Provider=c}).call(this,r(0).Buffer)}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdXNoIiwicGFyZW50SnNvbnBGdW5jdGlvbiIsIn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QUVoQixPQURBdUMsRUFBSVQsU0FBV08sRUFDUkUsRUFFWGYsWUFBWXpELEVBQUswQyxHQUNiLE9BQU8vQixFQUFVQyxVQUFNLE9BQVEsR0FBUSxZQUNuQyxRQUFZb0QsSUFBUmhFLEVBQ0EsT0FBT1ksS0FDWCxNQUFNMEMsUUFBWTNFLEVBQVF1RCxhQUFhbEMsRUFBSXlDLE9BQVFDLEdBQ25ELE9BQU85QixLQUFLNkQsV0FBV3pFLEVBQUlBLEtBQUswRSxXQUFXcEIsT0FJdkQzRSxFQUFRc0QsU0FBV0EsSUFFVXhFLEtBQUttRCxLQUFNckMsRUFBb0IsR0FBR21DIiwiZmlsZSI6Ii4vbWFpbi5qcyIsInNvdXJjZVJvb3QiOiIifQ==
{
"name": "@textile/context",
"version": "0.2.3",
"version": "0.2.4",
"main": "dist/index",

@@ -35,3 +35,3 @@ "types": "dist/index",

"dependencies": {
"@textile/threads-id": "^0.0.8",
"@textile/threads-id": "^0.0.9",
"@types/multibase": "^0.6.0",

@@ -41,3 +41,3 @@ "fast-sha256": "^1.3.0",

},
"gitHead": "5b78c901d8286d61773c3db88e5f2f62560f4de4"
"gitHead": "a5347049642e3bf9391482faf54401a0bd4d5b3c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc