rebilly-js-sdk 56.35.1 → 56.36.1
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/CHANGELOG.md +1 -1
- package/dist/rebilly-js-sdk.es.js +13 -25
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [56.
|
|
1
|
+
## [56.36.1](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v56.36.0...rebilly-js-sdk-v56.36.1) (2024-06-17)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var it = Object.defineProperty;
|
|
2
2
|
var gt = (e, t, s) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
-
var q = (e, t, s) =>
|
|
3
|
+
var q = (e, t, s) => gt(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
4
|
import x from "axios";
|
|
5
5
|
function d(e, { exclude: t = [] } = {}) {
|
|
6
6
|
Object.freeze(e);
|
|
@@ -123,33 +123,21 @@ function wt(e) {
|
|
|
123
123
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
124
124
|
}
|
|
125
125
|
var kt = Object.prototype.toString, Y = function(t) {
|
|
126
|
-
if (t === void 0)
|
|
127
|
-
|
|
128
|
-
if (t === null)
|
|
129
|
-
return "null";
|
|
126
|
+
if (t === void 0) return "undefined";
|
|
127
|
+
if (t === null) return "null";
|
|
130
128
|
var s = typeof t;
|
|
131
|
-
if (s === "boolean")
|
|
132
|
-
|
|
133
|
-
if (s === "
|
|
134
|
-
|
|
135
|
-
if (s === "number")
|
|
136
|
-
return "number";
|
|
137
|
-
if (s === "symbol")
|
|
138
|
-
return "symbol";
|
|
129
|
+
if (s === "boolean") return "boolean";
|
|
130
|
+
if (s === "string") return "string";
|
|
131
|
+
if (s === "number") return "number";
|
|
132
|
+
if (s === "symbol") return "symbol";
|
|
139
133
|
if (s === "function")
|
|
140
134
|
return Et(t) ? "generatorfunction" : "function";
|
|
141
|
-
if (vt(t))
|
|
142
|
-
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
if (
|
|
146
|
-
|
|
147
|
-
if (dt(t))
|
|
148
|
-
return "date";
|
|
149
|
-
if (Tt(t))
|
|
150
|
-
return "error";
|
|
151
|
-
if (St(t))
|
|
152
|
-
return "regexp";
|
|
135
|
+
if (vt(t)) return "array";
|
|
136
|
+
if (xt(t)) return "buffer";
|
|
137
|
+
if (qt(t)) return "arguments";
|
|
138
|
+
if (dt(t)) return "date";
|
|
139
|
+
if (Tt(t)) return "error";
|
|
140
|
+
if (St(t)) return "regexp";
|
|
153
141
|
switch (Q(t)) {
|
|
154
142
|
case "Symbol":
|
|
155
143
|
return "symbol";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(f,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],$):(f=typeof globalThis<"u"?globalThis:f||self,$(f["rebilly-js-sdk"]={},f.axios))})(this,function(f,$){"use strict";var cn=Object.defineProperty;var gn=(f,$,y)=>$ in f?cn(f,$,{enumerable:!0,configurable:!0,writable:!0,value:y}):f[$]=y;var M=(f,$,y)=>
|
|
1
|
+
(function(f,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],$):(f=typeof globalThis<"u"?globalThis:f||self,$(f["rebilly-js-sdk"]={},f.axios))})(this,function(f,$){"use strict";var cn=Object.defineProperty;var gn=(f,$,y)=>$ in f?cn(f,$,{enumerable:!0,configurable:!0,writable:!0,value:y}):f[$]=y;var M=(f,$,y)=>gn(f,typeof $!="symbol"?$+"":$,y);function y(t,{exclude:e=[]}={}){Object.freeze(t);const s=typeof t=="function";return Object.getOwnPropertyNames(t).forEach(n=>{(!s||n!=="caller"&&n!=="callee"&&n!=="arguments")&&t[n]!==null&&!e.includes(n)&&(typeof t[n]=="object"||typeof t[n]=="function")&&!Object.isFrozen(t[n])&&y(t[n],{exclude:e})}),t}class O{constructor({data:e,status:s,statusText:n,headers:r},u={}){this.response={status:s,statusText:n,headers:r},this.fields={...e},this.config=u,y(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({fields:this.fields}))}}const F={limit:"pagination-limit",offset:"pagination-offset",total:"pagination-total"};class Z{constructor({data:e,status:s,statusText:n,headers:r},u={}){this.limit=null,this.offset=null,this.total=null,Object.keys(F).forEach(o=>{const l=r[F[o]];this[o]=l?Number(l):null}),this.response={status:s,statusText:n,headers:r},this.items=e.map(o=>new O({data:o,status:s,statusText:n,headers:r})),this.config=u,y(this,{exclude:["cancelToken"]})}getJSON(){return JSON.parse(JSON.stringify({items:this.items}))}}class H{constructor({data:e,status:s,statusText:n,headers:r},u={}){this.response={status:s,statusText:n,headers:r},this.data=e,this.config=u}}class A extends Error{constructor({error:e,name:s=null}){let{config:n=null,response:r=null,request:u=null,message:o=null}=e,l=o||"Request Error";r&&r.data&&r.data.error&&(l=r.data.error),super(l),this.name=s||"RebillyError",this.response=r,this.request=u,this.config=n,this.status=r&&r.status?r.status:null,this.statusText=r&&r.statusText?r.statusText:null,this.details=r&&r.data&&r.data.details?r.data.details:null,this.invalidFields=r&&r.data&&r.data.invalidFields?r.data.invalidFields:null}}class ee extends A{constructor(e){super({error:e,name:"RebillyRequestError"})}}class te extends A{constructor(e){super({error:e,name:"RebillyValidationError"})}}class se extends A{constructor(e){super({error:e,name:"RebillyNotFoundError"})}}class ne extends A{constructor(e){super({error:e,name:"RebillyConflictError"})}}class re extends A{constructor(e){super({error:e,name:"RebillyForbiddenError"})}}class ue extends A{constructor(e){super({error:e,name:"RebillyMethodNotAllowedError"})}}class oe extends A{constructor(e){super({error:e,name:"RebillyTimeoutError"})}}class le extends A{constructor(e){super({error:e,name:"RebillyCanceledError"})}}const h={RebillyError:A,RebillyRequestError:ee,RebillyValidationError:te,RebillyNotFoundError:se,RebillyConflictError:ne,RebillyForbiddenError:re,RebillyMethodNotAllowedError:ue,RebillyTimeoutError:oe,RebillyCanceledError:le};function ce(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ie=Object.prototype.toString,K=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var s=typeof e;if(s==="boolean")return"boolean";if(s==="string")return"string";if(s==="number")return"number";if(s==="symbol")return"symbol";if(s==="function")return $e(e)?"generatorfunction":"function";if(ge(e))return"array";if(ye(e))return"buffer";if(he(e))return"arguments";if(me(e))return"date";if(ae(e))return"error";if(fe(e))return"regexp";switch(B(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(pe(e))return"generator";switch(s=ie.call(e),s){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return s.slice(8,-1).toLowerCase().replace(/\s/g,"")};function B(t){return typeof t.constructor=="function"?t.constructor.name:null}function ge(t){return Array.isArray?Array.isArray(t):t instanceof Array}function ae(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function me(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function fe(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function $e(t,e){return B(t)==="GeneratorFunction"}function pe(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function he(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function ye(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}/*!
|
|
2
2
|
* shallow-clone <https://github.com/jonschlinkert/shallow-clone>
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebilly-js-sdk",
|
|
3
|
-
"version": "56.
|
|
3
|
+
"version": "56.36.1",
|
|
4
4
|
"description": "Official Rebilly API JS library for the browser and Node",
|
|
5
5
|
"types": "./dist/rebilly-js-sdk.d.ts",
|
|
6
6
|
"main": "./dist/rebilly-js-sdk.umd.js",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@rebilly/eslint-config": "*",
|
|
53
53
|
"@types/jest": "^29.5.1",
|
|
54
54
|
"axios-mock-adapter": "^1.22.0",
|
|
55
|
-
"c8": "^10.1.
|
|
55
|
+
"c8": "^10.1.2",
|
|
56
56
|
"clone-deep": "^4.0.1",
|
|
57
57
|
"cross-env": "^7.0.3",
|
|
58
58
|
"dotenv": "^16.4.5",
|
|
59
59
|
"faker": "^4.1.0",
|
|
60
60
|
"openapi-typescript": "3.4.1",
|
|
61
61
|
"typescript": "^5.4.5",
|
|
62
|
-
"vite": "^5.
|
|
62
|
+
"vite": "^5.3.1",
|
|
63
63
|
"vitest": "^1.6.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|