@cloudbase/functions
Advanced tools
Comparing version 0.1.0-beta to 0.1.0-beta.1
@@ -1,1 +0,2 @@ | ||
export {}; | ||
import { ICloudbase } from '@cloudbase/types'; | ||
export declare function registerFunctions(app: ICloudbase): void; |
@@ -112,5 +112,9 @@ "use strict"; | ||
}; | ||
if (!cloudbase) { | ||
throw new Error("[" + SDK_NAME + "][" + ERRORS.INVALID_OPERATION + "] auth must be imported after @cloudbase/javascript-core"); | ||
try { | ||
cloudbase.registerComponent(component); | ||
} | ||
cloudbase.registerComponent(component); | ||
catch (e) { } | ||
function registerFunctions(app) { | ||
app.registerComponent(component); | ||
} | ||
exports.registerFunctions = registerFunctions; |
@@ -1,1 +0,2 @@ | ||
export {}; | ||
import { ICloudbase } from '@cloudbase/types'; | ||
export declare function registerFunctions(app: ICloudbase): void; |
@@ -110,5 +110,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
if (!cloudbase) { | ||
throw new Error("[" + SDK_NAME + "][" + ERRORS.INVALID_OPERATION + "] auth must be imported after @cloudbase/javascript-core"); | ||
try { | ||
cloudbase.registerComponent(component); | ||
} | ||
cloudbase.registerComponent(component); | ||
catch (e) { } | ||
export function registerFunctions(app) { | ||
app.registerComponent(component); | ||
} |
{ | ||
"name": "@cloudbase/functions", | ||
"version": "0.1.0-beta", | ||
"version": "0.1.0-beta.1", | ||
"description": "cloudbase javascript sdk functions componets", | ||
@@ -11,4 +11,8 @@ "main": "dist/cjs/index.js", | ||
"lint:fix": "eslint --fix \"./src/**/*.ts\"", | ||
"prepublish": "npm run tsc" | ||
"build": "npm run lint:fix && npm run tsc", | ||
"prepublish": "npm run build" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"keywords": [ | ||
@@ -15,0 +19,0 @@ "cloudbase", |
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
15028
303