@alipay/faas-common-sdk 1.1.20 → 1.1.21-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/error.js +1 -1
- package/lib/error.js +1 -1
- package/package.json +2 -2
package/esm/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=function(){var u=function(r,t){u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))n[o]=e[o]};return u(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var a=function(u){i(r,u);function r(t,n){var e=u.call(this,n)||this;e.name="FaasError";e.error=t;e.errorMessage=n;Object.setPrototypeOf(e,r.prototype);return e}Object.defineProperty(r.prototype,"errCode",{get:function(){return this.error},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"errMsg",{get:function(){return this.message},enumerable:false,configurable:true});r.INVALID_PARAM_ERR=function(t,n){return new r(60001,
|
|
1
|
+
var i=function(){var u=function(r,t){u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))n[o]=e[o]};return u(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var a=function(u){i(r,u);function r(t,n){var e=u.call(this,n)||this;e.name="FaasError";e.error=t;e.errorMessage=n;Object.setPrototypeOf(e,r.prototype);return e}Object.defineProperty(r.prototype,"errCode",{get:function(){return this.error},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"errMsg",{get:function(){return this.message},enumerable:false,configurable:true});r.INVALID_PARAM_ERR=function(t,n){return new r(60001,'\u65E0\u6548\u5165\u53C2\uFF0C\u53C2\u6570 "'.concat(t,'" ').concat(n))};r.NOT_FOUND_ERR=function(t){return new r(60001,t)};r.SERVER_ERR=function(t,n,e,o){var c=new r(t,n);c.requestID=e;c.httpStatus=o;return c};r.STORAGE_ERR=function(t,n,e){var o=new r(t,n);o.requestID=e;return o};r.NETWORK_ERR=function(t,n){var e=new r(-1,t.toString());e.requestID=n;return e};return r}(Error);export{a as FaasError};
|
package/lib/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __extends=this&&this.__extends||function(){var u=function(r,t){u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))n[o]=e[o]};return u(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:true});exports.FaasError=void 0;var FaasError=function(u){__extends(r,u);function r(t,n){var e=u.call(this,n)||this;e.name="FaasError";e.error=t;e.errorMessage=n;Object.setPrototypeOf(e,r.prototype);return e}Object.defineProperty(r.prototype,"errCode",{get:function(){return this.error},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"errMsg",{get:function(){return this.message},enumerable:false,configurable:true});r.INVALID_PARAM_ERR=function(t,n){return new r(60001,
|
|
1
|
+
"use strict";var __extends=this&&this.__extends||function(){var u=function(r,t){u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))n[o]=e[o]};return u(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:true});exports.FaasError=void 0;var FaasError=function(u){__extends(r,u);function r(t,n){var e=u.call(this,n)||this;e.name="FaasError";e.error=t;e.errorMessage=n;Object.setPrototypeOf(e,r.prototype);return e}Object.defineProperty(r.prototype,"errCode",{get:function(){return this.error},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"errMsg",{get:function(){return this.message},enumerable:false,configurable:true});r.INVALID_PARAM_ERR=function(t,n){return new r(60001,'\u65E0\u6548\u5165\u53C2\uFF0C\u53C2\u6570 "'.concat(t,'" ').concat(n))};r.NOT_FOUND_ERR=function(t){return new r(60001,t)};r.SERVER_ERR=function(t,n,e,o){var a=new r(t,n);a.requestID=e;a.httpStatus=o;return a};r.STORAGE_ERR=function(t,n,e){var o=new r(t,n);o.requestID=e;return o};r.NETWORK_ERR=function(t,n){var e=new r(-1,t.toString());e.requestID=n;return e};return r}(Error);exports.FaasError=FaasError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alipay/faas-common-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21-alpha.0",
|
|
4
4
|
"description": "云函数服务通用 SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typescript": "^5.0.4"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@alipay/faas-db-builder": "^1.1.
|
|
33
|
+
"@alipay/faas-db-builder": "^1.1.21-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">= 14.0.0"
|