@cloudbase/utilities
Advanced tools
Comparing version 0.1.0-beta to 0.1.0-beta.1
@@ -1,2 +0,2 @@ | ||
export declare const SDK_NAME = "@cloudbase/javascript"; | ||
export declare const SDK_NAME = "@cloudbase/js-sdk"; | ||
export declare const PROTOCOL = "https:"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SDK_NAME = '@cloudbase/javascript'; | ||
exports.SDK_NAME = '@cloudbase/js-sdk'; | ||
exports.PROTOCOL = 'https:'; |
@@ -1,5 +0,6 @@ | ||
export * as constants from './constants'; | ||
export * as adapters from './adapters'; | ||
export * as cache from './libs/cache'; | ||
export * as events from './libs/events'; | ||
export * as utils from './libs/util'; | ||
import * as constants from './constants'; | ||
import * as adapters from './adapters'; | ||
import * as cache from './libs/cache'; | ||
import * as events from './libs/events'; | ||
import * as utils from './libs/util'; | ||
export { constants, adapters, cache, events, utils }; |
@@ -10,6 +10,11 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.constants = __importStar(require("./constants")); | ||
exports.adapters = __importStar(require("./adapters")); | ||
exports.cache = __importStar(require("./libs/cache")); | ||
exports.events = __importStar(require("./libs/events")); | ||
exports.utils = __importStar(require("./libs/util")); | ||
var constants = __importStar(require("./constants")); | ||
exports.constants = constants; | ||
var adapters = __importStar(require("./adapters")); | ||
exports.adapters = adapters; | ||
var cache = __importStar(require("./libs/cache")); | ||
exports.cache = cache; | ||
var events = __importStar(require("./libs/events")); | ||
exports.events = events; | ||
var utils = __importStar(require("./libs/util")); | ||
exports.utils = utils; |
@@ -17,1 +17,2 @@ import { KV } from '@cloudbase/types'; | ||
export declare function createPromiseCallback(): any; | ||
export declare function execCallback(fn: Function | null | undefined, err: any, data?: any): any; |
@@ -151,1 +151,12 @@ "use strict"; | ||
; | ||
function execCallback(fn, err, data) { | ||
if (data === void 0) { data = null; } | ||
if (fn && typeof fn === 'function') { | ||
return fn(err, data); | ||
} | ||
if (err) { | ||
throw err; | ||
} | ||
return data; | ||
} | ||
exports.execCallback = execCallback; |
{ | ||
"name": "@cloudbase/utilities", | ||
"version": "0.1.0-beta", | ||
"version": "0.1.0-beta.1", | ||
"description": "cloudbase javascript sdk utilities", | ||
@@ -14,2 +14,3 @@ "main": "dist/index.js", | ||
"lint:fix": "eslint --fix \"./src/**/*.ts\"", | ||
"build": "npm run lint:fix&& npm run tsc", | ||
"prepublish": "npm run tsc" | ||
@@ -36,3 +37,3 @@ }, | ||
"@cloudbase/adapter-interface": "^0.4.0", | ||
"@cloudbase/types": "^0.1.0-beta", | ||
"@cloudbase/types": "^0.1.0-beta.2", | ||
"crypto-js": "^4.0.0" | ||
@@ -39,0 +40,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31690
777