@tonysamperi/ts-mapi-core 1.0.1 → 1.2.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/changelog.md +6 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +5 -2
- package/dist/cjs/services/http/index.cjs +1 -1
- package/dist/cjs/services/http/index.cjs.map +1 -1
- package/dist/cjs/services/http/smp-http.service.cjs +1 -1
- package/dist/cjs/services/http/smp-http.service.cjs.map +1 -1
- package/dist/cjs/services/index.cjs +1 -1
- package/dist/cjs/services/index.cjs.map +1 -1
- package/dist/cjs/shared/api/index.cjs +1 -1
- package/dist/cjs/shared/api/index.cjs.map +1 -1
- package/dist/cjs/shared/api/index.d.cts +1 -0
- package/dist/cjs/shared/api/smp-error-response-build-opts.interface.cjs +2 -0
- package/dist/cjs/shared/api/smp-error-response-build-opts.interface.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-error-response-build-opts.interface.d.cts +13 -0
- package/dist/cjs/shared/api/smp-error-response.class.cjs +1 -1
- package/dist/cjs/shared/api/smp-error-response.class.cjs.map +1 -1
- package/dist/cjs/shared/api/smp-error-response.class.d.cts +2 -8
- package/dist/cjs/shared/crypto/index.cjs +1 -1
- package/dist/cjs/shared/crypto/index.cjs.map +1 -1
- package/dist/cjs/shared/crypto/smp-secure-code.class.cjs +1 -1
- package/dist/cjs/shared/crypto/smp-secure-code.class.cjs.map +1 -1
- package/dist/cjs/shared/rxjs/index.cjs +1 -1
- package/dist/cjs/shared/rxjs/index.cjs.map +1 -1
- package/dist/cjs/shared/rxjs/index.d.cts +1 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-catch-only.function.cjs +2 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-catch-only.function.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-catch-only.function.d.cts +5 -0
- package/dist/esm/chunk-BYMUL3M4.js +1 -0
- package/dist/esm/{chunk-NPHREL4D.js → chunk-ITQRQR6W.js} +1 -1
- package/dist/esm/chunk-KZ3N6XCU.js +1 -0
- package/dist/esm/{chunk-WUGR5NYP.js → chunk-RNDVVALR.js} +1 -1
- package/dist/esm/chunk-U5DBFRKV.js +0 -0
- package/dist/esm/{chunk-THA6XUM5.js → chunk-XBKDBU3A.js} +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/firebase/index.js +1 -1
- package/dist/esm/services/firebase/smp-firebase.service.js +1 -1
- package/dist/esm/services/http/index.js +1 -1
- package/dist/esm/services/http/smp-http.service.js +1 -1
- package/dist/esm/services/index.js +1 -1
- package/dist/esm/shared/api/index.d.ts +1 -0
- package/dist/esm/shared/api/index.js +1 -1
- package/dist/esm/shared/api/smp-error-response-build-opts.interface.d.ts +13 -0
- package/dist/esm/shared/api/smp-error-response-build-opts.interface.js +1 -0
- package/dist/esm/shared/api/smp-error-response.class.d.ts +2 -8
- package/dist/esm/shared/api/smp-error-response.class.js +1 -1
- package/dist/esm/shared/common/index.js +1 -1
- package/dist/esm/shared/crypto/index.js +1 -1
- package/dist/esm/shared/crypto/smp-secure-code.class.js +1 -1
- package/dist/esm/shared/rxjs/index.d.ts +1 -0
- package/dist/esm/shared/rxjs/index.js +1 -1
- package/dist/esm/shared/rxjs/smp-rxjs-catch-only.function.d.ts +5 -0
- package/dist/esm/shared/rxjs/smp-rxjs-catch-only.function.js +1 -0
- package/dist/esm/shared/utils/index.js +1 -1
- package/dist/esm/shared/utils/smp-common-utils.class.js +1 -1
- package/package.json +1 -1
- package/dist/esm/chunk-OMUFNPZF.js +0 -1
- /package/dist/esm/{chunk-UHEBXSHT.js → chunk-DDTSA6ND.js} +0 -0
- /package/dist/esm/{chunk-WVAB4IBD.js → chunk-L6UZLRQU.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-
|
|
1
|
+
import"../../chunk-L6UZLRQU.js";import{a}from"../../chunk-KZ3N6XCU.js";import{a as c}from"../../chunk-QCY65CEY.js";import{a as b}from"../../chunk-RQMWVXXI.js";import"../../chunk-JFKSI6I7.js";export{a as smpRxjsCatchOnly,b as smpRxjsThrowIfEmpty,c as smpRxjsThrowOnCondition};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ObservableInput, OperatorFunction, ObservedValueOf } from 'rxjs';
|
|
2
|
+
|
|
3
|
+
declare function smpRxjsCatchOnly<T, E extends Error, O extends ObservableInput<any>>(errorType: new (...args: any[]) => E, selector: (err: E) => O): OperatorFunction<T, T | ObservedValueOf<O>>;
|
|
4
|
+
|
|
5
|
+
export { smpRxjsCatchOnly };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-KZ3N6XCU.js";import"../../chunk-JFKSI6I7.js";export{a as smpRxjsCatchOnly};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-T3P4NVTG.js";import
|
|
1
|
+
import"../../chunk-T3P4NVTG.js";import"../../chunk-THUEL7AA.js";import"../../chunk-VU2BXAMO.js";import{a as d}from"../../chunk-ITQRQR6W.js";import"../../chunk-IZD3BY3X.js";import{a as e}from"../../chunk-7FC5ZQDK.js";import"../../chunk-NIN4PUZX.js";import{a as g}from"../../chunk-NRABUNRU.js";import{a as f}from"../../chunk-VFSRM2TJ.js";import"../../chunk-HTUF5T5K.js";import"../../chunk-2DFXGAWG.js";import{a as c}from"../../chunk-NOYOAWWX.js";import{a as b}from"../../chunk-IFZTF7A7.js";import{a}from"../../chunk-JCZRE6MU.js";import"../../chunk-JFKSI6I7.js";export{a as SmpBrowserCache,d as SmpCommonUtils,e as SmpFilterException,b as SmpInMemoryCache,g as SmpRegularExpressions,f as SmpSid,c as smpNoop};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ITQRQR6W.js";import"../../chunk-IZD3BY3X.js";import"../../chunk-HTUF5T5K.js";import"../../chunk-2DFXGAWG.js";import"../../chunk-JFKSI6I7.js";export{a as SmpCommonUtils};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-BYEFRPVT.js";import{a as o}from"./chunk-2TQSQ6UP.js";import{a as i}from"./chunk-JFKSI6I7.js";import{Expose as g,plainToInstance as R}from"class-transformer";function m(){return[new o("GENERIC_ERROR")]}var r=class r extends c{constructor(s=m(),e="GENERIC_ERROR",a=500,t){super(s,t);this._errorCode=e;this._status=a;this._timestamp=Date.now()}get errorCode(){return this._errorCode}get status(){return this._status}get timestamp(){return this._timestamp}static build(s=m(),e,a,t){return new r(o.sanitizeMessages(s),e,a,t)}static create({messages:s=m(),...e}){return new r(o.sanitizeMessages(s),e.errorCode,e.status,e.data)}static fromPlain(s){let e=R(u,s,{excludePrefixes:["_"]}),a=new r;return Object.getOwnPropertyNames(e).forEach(t=>{t in a&&(a[t]=e[t])}),a}};i([g()],r.prototype,"errorCode",1),i([g()],r.prototype,"timestamp",1);var p=r,u=class extends p{set errorCode(n){this._errorCode=n}set status(n){this._status=n}set timestamp(n){this._timestamp=n}};export{p as a};
|
|
File without changes
|
|
File without changes
|