Comparing version 1.11.0 to 1.11.1
@@ -1,23 +0,1 @@ | ||
import { Api } from './api'; | ||
import { Auth } from './auth'; | ||
import { ClientConfig, ClientType, ConnectionType, LiveSyncConfig, NexusConfig } from './common'; | ||
import { LiveEvent, LiveSync } from './livesync'; | ||
import { Module } from './module'; | ||
import { Multitool } from './multitool'; | ||
import { ClientAuth, SystemInstance, SystemLoggerOptions } from './system'; | ||
export { Api, Auth, LiveSync, Module, LiveEvent, ClientType, ClientAuth, ConnectionType, ClientConfig, NexusConfig, LiveSyncConfig, SystemInstance, }; | ||
export declare type ConfigSettings = { | ||
nexus: NexusConfig; | ||
client: ClientConfig; | ||
auth: ClientAuth; | ||
logging: SystemLoggerOptions; | ||
livesync?: LiveSyncConfig; | ||
}; | ||
export interface BfLib { | ||
api: Api; | ||
auth: Auth; | ||
livesync: LiveSync; | ||
module: Module; | ||
multitool: Multitool; | ||
} | ||
export default function bflib(settings: ConfigSettings): Promise<BfLib>; | ||
export * from './lib'; |
39
index.js
@@ -1,38 +0,1 @@ | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const common_1 = require("./common"); | ||
exports.ClientType = common_1.ClientType; | ||
exports.ConnectionType = common_1.ConnectionType; | ||
const system_1 = require("./system"); | ||
function bflib(settings) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield system_1.default.init(settings); | ||
return Object.freeze({ | ||
get api() { | ||
return system_1.default.getLibModule(system_1.LibModule.API); | ||
}, | ||
get auth() { | ||
return system_1.default.getLibModule(system_1.LibModule.AUTH); | ||
}, | ||
get livesync() { | ||
return system_1.default.getLibModule(system_1.LibModule.LIVESYNC); | ||
}, | ||
get module() { | ||
return system_1.default.getLibModule(system_1.LibModule.MODULE); | ||
}, | ||
get multitool() { | ||
return system_1.default.getLibModule(system_1.LibModule.MULTITOOL); | ||
}, | ||
}); | ||
}); | ||
} | ||
exports.default = bflib; | ||
export { default as bflib } from './lib'; |
{ | ||
"name": "bf-lib", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"private": false, | ||
"description": "the standard client library for block-5 services", | ||
"description": "the standard client library for block-5 software", | ||
"scripts": { | ||
"build": "tsc -p tsconfig.build.json && cp -rf LICENSE README.md package.json lib/", | ||
"build": "rimraf lib && tsc -p tsconfig.build.json", | ||
"commit": "git-cz", | ||
"check": "tsc -p tsconfig.check.json -noEmit", | ||
"format": "prettier --write \"src/**/*.{ts,js,json}\"", | ||
"lint": "eslint './src/**/*.{js,ts,tsx}' --fix || exit 0", | ||
"lint": "eslint './src/**/*.{js,ts,tsx}' --fix", | ||
"postversion": "git push && git push --tags", | ||
@@ -17,7 +17,6 @@ "preversion": "npm run lint", | ||
"version": "npm run format && git add -A src", | ||
"patchpub": "npm version patch && npm run pub", | ||
"minorpub": "npm version minor && npm run pub", | ||
"majorpub": "npm version major && npm run pub", | ||
"prepare": "test -d lib && exit 1 || exit 0", | ||
"pub": "npm test && npm run lint && npm run build && cd lib && rm -f tsconfig.build.tsbuildinfo && npm publish" | ||
"patchpub": "npm version patch && npm publish", | ||
"minorpub": "npm version minor && npm publish", | ||
"majorpub": "npm version major && npm publish", | ||
"prepare": "npm test && npm run lint && npm run build" | ||
}, | ||
@@ -101,2 +100,3 @@ "repository": { | ||
"prettier": "^2.0.5", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^25.5.1", | ||
@@ -103,0 +103,0 @@ "tslint": "^6.1.2", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
78396
72
1834
22
1