@zyzgroup/core-web 0.0.1 → 0.0.2
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.
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
class
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
this.name = this.constructor.name;
|
|
1
|
+
class s extends Error {
|
|
2
|
+
cause;
|
|
3
|
+
constructor(e, t) {
|
|
4
|
+
super(e, t), this.name = this.constructor.name;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
class
|
|
7
|
+
class c extends s {
|
|
8
8
|
constructor() {
|
|
9
9
|
super("This is not a browser environment");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
class
|
|
12
|
+
class n extends s {
|
|
13
13
|
constructor() {
|
|
14
14
|
super("Cancel select");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.accepts =
|
|
17
|
+
class o extends s {
|
|
18
|
+
accepts;
|
|
19
|
+
constructor(e) {
|
|
20
|
+
super(`Please select files in ${e} format`), this.accepts = e;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
export {
|
|
24
|
+
s as BaseError,
|
|
25
|
+
c as EnvironmentError,
|
|
26
|
+
n as FileSelectCancelError,
|
|
27
|
+
o as IllegalFileError
|
|
28
|
+
};
|
|
25
29
|
//# sourceMappingURL=zyzgroup-core-web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zyzgroup-core-web.js","sources":["../src/error.ts"],"sourcesContent":["export class BaseError extends Error {\n cause?: Error;\n\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = this.constructor.name;\n }\n}\n\nexport class EnvironmentError extends BaseError {\n constructor() {\n super(\"This is not a browser environment\");\n }\n}\n\nexport class FileSelectCancelError extends BaseError {\n constructor() {\n super(\"Cancel select\");\n }\n}\n\nexport class IllegalFileError extends BaseError {\n accepts: string[];\n\n constructor(accepts: string[]) {\n super(`Please select files in ${accepts} format`);\n this.accepts = accepts;\n }\n}\n"],"names":[],"mappings":"AAAO,
|
|
1
|
+
{"version":3,"file":"zyzgroup-core-web.js","sources":["../src/error.ts"],"sourcesContent":["export class BaseError extends Error {\n cause?: Error;\n\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = this.constructor.name;\n }\n}\n\nexport class EnvironmentError extends BaseError {\n constructor() {\n super(\"This is not a browser environment\");\n }\n}\n\nexport class FileSelectCancelError extends BaseError {\n constructor() {\n super(\"Cancel select\");\n }\n}\n\nexport class IllegalFileError extends BaseError {\n accepts: string[];\n\n constructor(accepts: string[]) {\n super(`Please select files in ${accepts} format`);\n this.accepts = accepts;\n }\n}\n"],"names":["BaseError","message","options","EnvironmentError","FileSelectCancelError","IllegalFileError","accepts"],"mappings":"AAAO,MAAMA,UAAkB,MAAM;AAAA,EACnC;AAAA,EAEA,YAAYC,GAAiBC,GAAwB;AACnD,UAAMD,GAASC,CAAO,GACjB,KAAA,OAAO,KAAK,YAAY;AAAA,EAC/B;AACF;AAEO,MAAMC,UAAyBH,EAAU;AAAA,EAC9C,cAAc;AACZ,UAAM,mCAAmC;AAAA,EAC3C;AACF;AAEO,MAAMI,UAA8BJ,EAAU;AAAA,EACnD,cAAc;AACZ,UAAM,eAAe;AAAA,EACvB;AACF;AAEO,MAAMK,UAAyBL,EAAU;AAAA,EAC9C;AAAA,EAEA,YAAYM,GAAmB;AACvB,UAAA,0BAA0BA,CAAO,SAAS,GAChD,KAAK,UAAUA;AAAA,EACjB;AACF;"}
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ZYZGroupCoreWeb = {}));
|
|
5
|
-
})(this, (function (exports) { 'use strict';
|
|
6
|
-
|
|
7
|
-
class BaseError extends Error {
|
|
8
|
-
constructor(message, options) {
|
|
9
|
-
super(message, options);
|
|
10
|
-
this.name = this.constructor.name;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
class EnvironmentError extends BaseError {
|
|
14
|
-
constructor() {
|
|
15
|
-
super("This is not a browser environment");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
class FileSelectCancelError extends BaseError {
|
|
19
|
-
constructor() {
|
|
20
|
-
super("Cancel select");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
class IllegalFileError extends BaseError {
|
|
24
|
-
constructor(accepts) {
|
|
25
|
-
super(`Please select files in ${accepts} format`);
|
|
26
|
-
this.accepts = accepts;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
exports.BaseError = BaseError;
|
|
31
|
-
exports.EnvironmentError = EnvironmentError;
|
|
32
|
-
exports.FileSelectCancelError = FileSelectCancelError;
|
|
33
|
-
exports.IllegalFileError = IllegalFileError;
|
|
34
|
-
|
|
35
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
36
|
-
|
|
37
|
-
}));
|
|
1
|
+
(function(e,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(e=typeof globalThis<"u"?globalThis:e||self,r(e["zyzgroup-core-web"]={}))})(this,function(e){"use strict";class r extends Error{cause;constructor(n,i){super(n,i),this.name=this.constructor.name}}class t extends r{constructor(){super("This is not a browser environment")}}class o extends r{constructor(){super("Cancel select")}}class c extends r{accepts;constructor(n){super(`Please select files in ${n} format`),this.accepts=n}}e.BaseError=r,e.EnvironmentError=t,e.FileSelectCancelError=o,e.IllegalFileError=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
38
2
|
//# sourceMappingURL=zyzgroup-core-web.umd.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zyzgroup-core-web.umd.cjs","sources":["../src/error.ts"],"sourcesContent":["export class BaseError extends Error {\n cause?: Error;\n\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = this.constructor.name;\n }\n}\n\nexport class EnvironmentError extends BaseError {\n constructor() {\n super(\"This is not a browser environment\");\n }\n}\n\nexport class FileSelectCancelError extends BaseError {\n constructor() {\n super(\"Cancel select\");\n }\n}\n\nexport class IllegalFileError extends BaseError {\n accepts: string[];\n\n constructor(accepts: string[]) {\n super(`Please select files in ${accepts} format`);\n this.accepts = accepts;\n }\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"zyzgroup-core-web.umd.cjs","sources":["../src/error.ts"],"sourcesContent":["export class BaseError extends Error {\n cause?: Error;\n\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = this.constructor.name;\n }\n}\n\nexport class EnvironmentError extends BaseError {\n constructor() {\n super(\"This is not a browser environment\");\n }\n}\n\nexport class FileSelectCancelError extends BaseError {\n constructor() {\n super(\"Cancel select\");\n }\n}\n\nexport class IllegalFileError extends BaseError {\n accepts: string[];\n\n constructor(accepts: string[]) {\n super(`Please select files in ${accepts} format`);\n this.accepts = accepts;\n }\n}\n"],"names":["BaseError","message","options","EnvironmentError","FileSelectCancelError","IllegalFileError","accepts"],"mappings":"4OAAO,MAAMA,UAAkB,KAAM,CACnC,MAEA,YAAYC,EAAiBC,EAAwB,CACnD,MAAMD,EAASC,CAAO,EACjB,KAAA,KAAO,KAAK,YAAY,IAC/B,CACF,CAEO,MAAMC,UAAyBH,CAAU,CAC9C,aAAc,CACZ,MAAM,mCAAmC,CAC3C,CACF,CAEO,MAAMI,UAA8BJ,CAAU,CACnD,aAAc,CACZ,MAAM,eAAe,CACvB,CACF,CAEO,MAAMK,UAAyBL,CAAU,CAC9C,QAEA,YAAYM,EAAmB,CACvB,MAAA,0BAA0BA,CAAO,SAAS,EAChD,KAAK,QAAUA,CACjB,CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyzgroup/core-web",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/zyzgroup-core-web.umd.cjs",
|
|
6
7
|
"module": "dist/zyzgroup-core-web.js",
|
|
7
8
|
"types": "types/index.d.ts",
|
|
@@ -16,6 +17,8 @@
|
|
|
16
17
|
"types/**/*"
|
|
17
18
|
],
|
|
18
19
|
"scripts": {
|
|
20
|
+
"build": "npm run build:type && npm run --prefix ../../../vite/ lib -- ../lib/packages/core-web/vite.config.json && npm run publishToNpmjs",
|
|
21
|
+
"publishToNpmjs": "update_package_version ./package.json && npm publish --access public",
|
|
19
22
|
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.json",
|
|
20
23
|
"clear:type": "rimraf ./types"
|
|
21
24
|
},
|
|
@@ -23,4 +26,4 @@
|
|
|
23
26
|
"rimraf": "^5.0.5",
|
|
24
27
|
"typescript": "^5.2.2"
|
|
25
28
|
}
|
|
26
|
-
}
|
|
29
|
+
}
|