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.4.3 to 0.4.4

54

dist/index.d.ts
import { grpc } from '@improbable-eng/grpc-web';
import { UserAuth, KeyInfo } from '@textile/security';
/**

@@ -8,55 +9,2 @@ * The set of host strings used by any gPRC clients.

/**
* Type describing the required shape of input user group/account keys.
*/
export declare type KeyInfo = {
/**
* API key. Can be embedded/shared within an app.
*/
key: string;
/**
* User group/account secret. Should not be embedded/shared publicly.
*/
secret: string;
/**
* Key type. One of ACCOUNT or USER
*/
type: 0 | 1;
};
/**
* Type describing the minimal requirements for a user group auth session.
*/
export declare type UserAuth = {
/**
* The public component of the user group key.
*/
key: string;
/**
* The signature of the authentication message.
*/
sig: string;
/**
* The authentication message.
*/
msg: string;
/**
* An optional authentication token as generated by getToken or getTokenChallenge.
*/
token?: string;
};
export declare const expirationError: Error;
/**
* Generate an authorization signature and message.
* By default, this will use a Date one minute from `Date.now` as the message. Subsequent calls to
* the gRPC APIs will throw (or return an authorization error) if the message date has passed.
* @note This function is provided for app developers, but it should NOT be used client-side,
* as it requires a key secret.
* @param secret The key secret to generate the signature. See KeyInfo for details.
* @param date An optinal future Date to use as signature message. Once `date` has passed, this
* authorization signature and message will expire. Defaults to one minute from `Date.now`.
*/
export declare const createAPISig: (secret: string, date?: Date) => Promise<{
sig: string;
msg: string;
}>;
/**
* Interface describing the set of default context keys.

@@ -63,0 +11,0 @@ */

@@ -22,31 +22,8 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Context = exports.createAPISig = exports.expirationError = exports.defaultHost = void 0;
exports.Context = exports.defaultHost = void 0;
const grpc_web_1 = require("@improbable-eng/grpc-web");
const fast_sha256_1 = require("fast-sha256");
const multibase_1 = __importDefault(require("multibase"));
const security_1 = require("@textile/security");
exports.defaultHost = 'https://api.textile.io:3447';
exports.expirationError = new Error('Context expired. Consider calling withUserKey or withAPISig to refresh.');
/**
* Generate an authorization signature and message.
* By default, this will use a Date one minute from `Date.now` as the message. Subsequent calls to
* the gRPC APIs will throw (or return an authorization error) if the message date has passed.
* @note This function is provided for app developers, but it should NOT be used client-side,
* as it requires a key secret.
* @param secret The key secret to generate the signature. See KeyInfo for details.
* @param date An optinal future Date to use as signature message. Once `date` has passed, this
* authorization signature and message will expire. Defaults to one minute from `Date.now`.
*/
exports.createAPISig = (secret, date = new Date(Date.now() + 1000 * 60)) => __awaiter(void 0, void 0, void 0, function* () {
const sec = multibase_1.default.decode(secret);
const msg = (date !== null && date !== void 0 ? date : new Date()).toISOString();
const hash = new fast_sha256_1.HMAC(sec);
const mac = hash.update(Buffer.from(msg)).digest();
const sig = multibase_1.default.encode('base32', Buffer.from(mac)).toString();
return { sig, msg };
});
/**
* Context provides context management for gRPC credentials and config settings.

@@ -138,3 +115,3 @@ * It is the default implementation for the ContextInterface interface.

return this;
const sig = yield exports.createAPISig(key.secret, date);
const sig = yield security_1.createAPISig(key.secret, date);
return this.withAPIKey(key.key).withAPISig(sig);

@@ -155,3 +132,3 @@ });

if (msg && new Date(msg) <= new Date()) {
throw exports.expirationError;
throw security_1.expirationError;
}

@@ -158,0 +135,0 @@ return context;

4

dist/main.js

@@ -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}static fromUserAuth(t,r=e.defaultHost,n=!1,i=s.grpc.WebsocketTransport()){const a=new c(r,n,i),{key:u,token:h}=t,l=o(t,["key","token"]);return a.withAPIKey(t.key).withAPISig(l).withToken(h)}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}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)}))}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}}e.Context=c}).call(this,r(0).Buffer)}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdXNoIiwicGFyZW50SnNvbnBGdW5jdGlvbiIsInNoaWZ0IiwiZGVmZXJyZWRNb2R1bGVzIiwiYXBwbHkiLCJjaGVja0RlZmVycmVkTW9kdWxlcyIsInJlc3VsdCIsImRlZmVycmVkTW9kdWxlIiwiZnVsZmlsbGVkIiwiaiIsImRlcElkIiwic3BsaWNlIiwiX193ZWJwYWNrX3JlcXVpcmVfXyIsInMiLCJpbnN0YWxsZWRNb2R1bGVzIiwiMCIsImV4cG9ydHMiLCJtb2R1bGUiLCJsIiwibSIsImMiLCJkIiwibmFtZSIsImdldHRlciIsIm8iLCJkZWZpbmVQcm9wZXJ0eSIsImVudW1lcmFibGUiLCJnZXQiLCJyIiwiU3ltYm9sIiwidG9TdHJpbmdUYWciLCJ2YWx1ZSIsInQiLCJtb2RlIiwiX19lc01vZHVsZSIsIm5zIiwiY3JlYXRlIiwia2V5IiwiYmluZCIsIm4iLCJvYmplY3QiLCJwcm9wZXJ0eSIsInAiL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0FBTyxHQUFJRixHQUNyQ0MsRUFBaUIsS0FBSWxCLEVBQ3JCa0IsRUFBc0IsVUFBSWhCLEVBQzFCZ0IsRUFBa0IsTUFBSWpCLEVBQ3RCLE1BQU1NLEVBQU0sSUFBSWhDLEVBRWhCLE9BREFnQyxFQUFJRixTQUFXYSxFQUNSWCxHQUdmdEYsRUFBUXNELFFBQVVBLElBRVd4RSxLQUFLbUQsS0FBTXJDLEVBQW9CLEdBQUdtQyIsImZpbGUiOiIuL21haW4uanMiLCJzb3VyY2VSb290IjoiIn0=
var threads=function(t){function e(e){for(var n,s,a=e[0],c=e[1],u=e[2],l=0,p=[];l<a.length;l++)s=a[l],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&p.push(o[s][0]),o[s]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(t[n]=c[n]);for(h&&h(e);p.length;)p.shift()();return i.push.apply(i,u||[]),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 c=r[a];0!==o[c]&&(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||[],c=a.push.bind(a);a.push=e,a=a.slice();for(var u=0;u<a.length;u++)e(a[u]);var h=c;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{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}c((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 c=new a(r,n,s),{key:u,token:h}=t,l=o(t,["key","token"]);return c.withAPIKey(t.key).withAPISig(l).withToken(h)}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}withUserKey(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}toJSON(){const t=this._context,{transport:e}=t,r=o(t,["transport"]),n=r["x-textile-api-sig-msg"];if(n&&new Date(n)<=new Date)throw s.expirationError;return r}toMetadata(){return new i.grpc.Metadata(this.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 c=new a;return c._context=s,c}}e.Context=a}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly90aHJlYWRzL21haW4uanMiXSwibmFtZXMiOlsidGhyZWFkcyIsIm1vZHVsZXMiLCJ3ZWJwYWNrSnNvbnBDYWxsYmFjayIsImRhdGEiLCJtb2R1bGVJZCIsImNodW5rSWQiLCJjaHVua0lkcyIsIm1vcmVNb2R1bGVzIiwiZXhlY3V0ZU1vZHVsZXMiLCJpIiwicmVzb2x2ZXMiLCJsZW5ndGgiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJpbnN0YWxsZWRDaHVua3MiLCJwdXNoIiwicGFyZW50SnNvbnBGdW5jdGlvbiIsInNoaWZ0IiwiZGVmZXJyZWRNb2R1bGVzIiwiYXBwbHkiLCJjaGVja0RlZmVycmVkTW9kdWxlcyIsInJlc3VsdCIsImRlZmVycmVkTW9kdWxlIiwiZnVsZmlsbGVkIiwiaiIsImRlcElkIiwic3BsaWNlIiwiX193ZWJwYWNrX3JlcXVpcmVfXyIsInMiLCJpbnN0YWxsZWRN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sVUFGWDFDLEtBS2ZzQixTQUVJLE1BQU1xQixFQUFLM0MsS0FBSzRCLFVBQVVILFVBQUVBLEdBQWNrQixFQUFJQyxFQUFVOUIsRUFBTzZCLEVBQUksQ0FBQyxjQUM5REwsRUFBTU0sRUFBUSx5QkFDcEIsR0FBSU4sR0FBTyxJQUFJTyxLQUFLUCxJQUFRLElBQUlPLEtBQzVCLE1BQU14QixFQUFXeUIsZ0JBRXJCLE9BQU9GLEVBRVh0QixhQUNJLE9BQU8sSUFBSUYsRUFBV00sS0FBS3FCLFNBQVMvQyxLQUFLMEMsVUFTN0NwQixnQkFBZ0IwQixFQUFNekIsRUFBT3ZELEVBQVFtRCxZQUFhSyxHQUFRLEVBQU9DLEVBQVlMLEVBQVdNLEtBQUtDLHNCQUN6RixNQUFNc0IsRUFBYXRHLE9BQU91RyxPQUFPLEdBQUlGLEdBQ3JDQyxFQUFpQixLQUFJMUIsRUFDckIwQixFQUFzQixVQUFJeEIsRUFDMUJ3QixFQUFrQixNQUFJekIsRUFDdEIsTUFBTU0sRUFBTSxJQUFJWixFQUVoQixPQURBWSxFQUFJRixTQUFXcUIsRUFDUm5CLEdBR2Y5RCxFQUFRa0QsUUFBVUEiLCJmaWxlIjoiLi9tYWluLmpzIiwic291cmNlUm9vdCI6IiJ9
{
"name": "@textile/context",
"version": "0.4.3",
"version": "0.4.4",
"main": "dist/index",

@@ -34,10 +34,11 @@ "types": "dist/index",

"path": "../id"
},
{
"path": "../security"
}
],
"dependencies": {
"@types/multibase": "^0.6.0",
"fast-sha256": "^1.3.0",
"multibase": "^0.7.0"
"@textile/security": "^0.1.1"
},
"gitHead": "7237c11faa3ebb2a90a05502a2e314b155b14ad0"
"gitHead": "70e27fb5f7552b987a646c5415ab684275982041"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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