New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@textile/core-storage

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textile/core-storage - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

dist/cjs/token.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.createAndSignToken = void 0;
exports.createToken = void 0;
const base64_1 = require("@stablelib/base64");

@@ -27,3 +27,3 @@ // Utilities and constants

*/
function createAndSignToken(signer, header, claims) {
function createToken(signer, header, claims) {
var _a, _b;

@@ -51,3 +51,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
exports.createAndSignToken = createAndSignToken;
exports.createToken = createToken;
//# sourceMappingURL=token.js.map

@@ -23,3 +23,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

*/
export function createAndSignToken(signer, header, claims) {
export function createToken(signer, header, claims) {
var _a, _b;

@@ -26,0 +26,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -9,1 +9,9 @@ export * from "./token";

export declare type CoreAPI = StorageAPI & ProviderAPI & RegistryAPI;
/**
* Options for init configuration
*/
export interface InitOptions {
provider?: string;
registry?: string;
token?: string;
}

@@ -42,3 +42,3 @@ /**

*/
export declare function createAndSignToken(signer: Signer, header: Header, claims: StandardClaims): Promise<{
export declare function createToken(signer: Signer, header: Header, claims: StandardClaims): Promise<{
token: string;

@@ -45,0 +45,0 @@ claims: StandardClaims;

{
"name": "@textile/core-storage",
"version": "0.0.4",
"version": "0.0.5",
"description": "Core interfaces for Textile's Filecoin bridge system",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -11,1 +11,13 @@ export * from "./token";

export type CoreAPI = StorageAPI & ProviderAPI & RegistryAPI;
/**
* Options for init configuration
*/
export interface InitOptions {
// Provider contract id.
provider?: string;
// Registry contract id.
registry?: string;
// Self-signed access token.
token?: string;
}

@@ -53,3 +53,3 @@ import { encodeURLSafe } from "@stablelib/base64";

*/
export async function createAndSignToken(
export async function createToken(
signer: Signer,

@@ -56,0 +56,0 @@ header: Header,

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