fission-sdk
Advanced tools
Comparing version 0.14.0 to 0.14.1
import FileSystem from './fs'; | ||
import * as dataRoot from './data-root'; | ||
import * as did from './did'; | ||
import * as dns from './dns'; | ||
import * as ipfs from './ipfs'; | ||
import * as keystore from './keystore'; | ||
import * as lobby from './lobby'; | ||
import * as setup from './setup'; | ||
import * as ucan from './ucan'; | ||
export declare type Scenario = { | ||
@@ -50,22 +42,16 @@ notAuthenticated?: true; | ||
*/ | ||
declare function initialise(options: { | ||
export declare function initialise(options: { | ||
autoRemoveUrlParams?: boolean; | ||
loadFileSystem?: boolean; | ||
}): Promise<FulfilledScenario>; | ||
declare const _default: { | ||
dataRoot: typeof dataRoot; | ||
did: typeof did; | ||
lobby: typeof lobby; | ||
setup: typeof setup; | ||
ucan: typeof ucan; | ||
fs: typeof FileSystem; | ||
dns: typeof dns; | ||
ipfs: typeof ipfs; | ||
keystore: typeof keystore; | ||
loadFileSystem(username?: string | undefined): Promise<FileSystem>; | ||
authenticatedUsername(): Promise<string | null>; | ||
deauthenticate(): Promise<void>; | ||
redirectToLobby(returnTo?: string | undefined): Promise<void>; | ||
initialise: typeof initialise; | ||
}; | ||
export default _default; | ||
export * from './auth'; | ||
export * from './filesystem'; | ||
export declare const fs: typeof FileSystem; | ||
export * as dataRoot from './data-root'; | ||
export * as did from './did'; | ||
export * as lobby from './lobby'; | ||
export * as setup from './setup'; | ||
export * as ucan from './ucan'; | ||
export * as dns from './dns'; | ||
export * as ipfs from './ipfs'; | ||
export * as keystore from './keystore'; |
52
index.js
@@ -1,12 +0,1 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -52,11 +41,2 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
import * as auth from './auth'; | ||
import * as dataRoot from './data-root'; | ||
import * as did from './did'; | ||
import * as dns from './dns'; | ||
import * as ipfs from './ipfs'; | ||
import * as keystore from './keystore'; | ||
import * as lobby from './lobby'; | ||
import * as setup from './setup'; | ||
import * as ucan from './ucan'; | ||
import * as fsFunctions from './filesystem'; | ||
import fsClass from './fs'; | ||
@@ -71,3 +51,3 @@ // INTIALISE | ||
*/ | ||
function initialise(options) { | ||
export function initialise(options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -154,13 +134,21 @@ var maybeLoadFs, autoRemoveUrlParams, url, cancellation, ucan, newUser, username, _a, _b, c, authedUsername, _c, _d, _e; | ||
// EXPORT | ||
export default __assign(__assign(__assign({ initialise: initialise }, auth), fsFunctions), { | ||
// Modularised | ||
dataRoot: dataRoot, | ||
did: did, | ||
lobby: lobby, | ||
setup: setup, | ||
ucan: ucan, fs: fsClass, | ||
// Basement | ||
dns: dns, | ||
ipfs: ipfs, | ||
keystore: keystore }); | ||
export * from './auth'; | ||
export * from './filesystem'; | ||
export var fs = fsClass; | ||
import * as dataRoot_1 from './data-root'; | ||
export { dataRoot_1 as dataRoot }; | ||
import * as did_1 from './did'; | ||
export { did_1 as did }; | ||
import * as lobby_1 from './lobby'; | ||
export { lobby_1 as lobby }; | ||
import * as setup_1 from './setup'; | ||
export { setup_1 as setup }; | ||
import * as ucan_1 from './ucan'; | ||
export { ucan_1 as ucan }; | ||
import * as dns_1 from './dns'; | ||
export { dns_1 as dns }; | ||
import * as ipfs_1 from './ipfs'; | ||
export { ipfs_1 as ipfs }; | ||
import * as keystore_1 from './keystore'; | ||
export { keystore_1 as keystore }; | ||
// ㊙️ | ||
@@ -167,0 +155,0 @@ function scenarioAuthSucceeded(newUser, username, fs) { |
{ | ||
"name": "fission-sdk", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "Fission Typescript SDK", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -30,3 +30,3 @@  | ||
// ES6 | ||
import sdk from 'fission-sdk' | ||
import * as sdk from 'fission-sdk' | ||
@@ -33,0 +33,0 @@ // Browser/UMD build |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
8981194
88775