diginext-utils 4.0.3 → 4.0.5

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,3 +1,5 @@
1
- export { upload } from "./upload";
2
- export { resize } from "./resize";
1
+ export * from "./upload";
2
+ export * from "./resize";
3
+ export * from "./loadImage";
4
+ export * from "./downloadByUrl";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/images/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/images/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -1,3 +1,4 @@
1
- // export { default as AdminIcon } from "diginext-dashkit/dist/Icon";
2
- export { upload } from "./upload";
3
- export { resize } from "./resize";
1
+ export * from "./upload";
2
+ export * from "./resize";
3
+ export * from "./loadImage";
4
+ export * from "./downloadByUrl";
@@ -1,2 +1,3 @@
1
- export default function loadImage(list: Array<string>): Promise<unknown[] | undefined>;
1
+ export declare function loadImage(list: Array<string>): Promise<unknown[] | undefined>;
2
+ export default loadImage;
2
3
  //# sourceMappingURL=loadImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadImage.d.ts","sourceRoot":"","sources":["../../src/images/loadImage.ts"],"names":[],"mappings":"AAAA,wBAA8B,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,kCAe1D"}
1
+ {"version":3,"file":"loadImage.d.ts","sourceRoot":"","sources":["../../src/images/loadImage.ts"],"names":[],"mappings":"AAAA,wBAAsB,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,kCAelD;AAED,eAAe,SAAS,CAAC"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- export default function loadImage(list) {
10
+ export function loadImage(list) {
11
11
  return __awaiter(this, void 0, void 0, function* () {
12
12
  //
13
13
  if (!(list === null || list === void 0 ? void 0 : list.length))
@@ -23,3 +23,4 @@ export default function loadImage(list) {
23
23
  }));
24
24
  });
25
25
  }
26
+ export default loadImage;
@@ -1,3 +1,5 @@
1
- export { upload } from "./upload";
2
- export { resize } from "./resize";
1
+ export * from "./upload";
2
+ export * from "./resize";
3
+ export * from "./loadImage";
4
+ export * from "./downloadByUrl";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/images/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/images/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -1,3 +1,4 @@
1
- // export { default as AdminIcon } from "diginext-dashkit/dist/Icon";
2
- export { upload } from "./upload";
3
- export { resize } from "./resize";
1
+ export * from "./upload";
2
+ export * from "./resize";
3
+ export * from "./loadImage";
4
+ export * from "./downloadByUrl";
@@ -1,2 +1,3 @@
1
- export default function loadImage(list: Array<string>): Promise<unknown[] | undefined>;
1
+ export declare function loadImage(list: Array<string>): Promise<unknown[] | undefined>;
2
+ export default loadImage;
2
3
  //# sourceMappingURL=loadImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadImage.d.ts","sourceRoot":"","sources":["../../src/images/loadImage.ts"],"names":[],"mappings":"AAAA,wBAA8B,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,kCAe1D"}
1
+ {"version":3,"file":"loadImage.d.ts","sourceRoot":"","sources":["../../src/images/loadImage.ts"],"names":[],"mappings":"AAAA,wBAAsB,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,kCAelD;AAED,eAAe,SAAS,CAAC"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- export default function loadImage(list) {
10
+ export function loadImage(list) {
11
11
  return __awaiter(this, void 0, void 0, function* () {
12
12
  //
13
13
  if (!(list === null || list === void 0 ? void 0 : list.length))
@@ -23,3 +23,4 @@ export default function loadImage(list) {
23
23
  }));
24
24
  });
25
25
  }
26
+ export default loadImage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginext-utils",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "sideEffects": false,
5
5
  "readme": "README.md",
6
6
  "homepage": "https://wearetopgroup.com",
@@ -18,119 +18,155 @@
18
18
  "extra"
19
19
  ],
20
20
  "main": "./dist/index.js",
21
- "module": "./esm/index.js",
21
+ "module": "./dist/index.js",
22
22
  "types": "./dist/index.d.ts",
23
23
  "typesVersions": {
24
24
  "*": {
25
- "*": ["./dist/index.d.ts"],
26
- "array": ["./dist/array/index.d.ts"],
27
- "string": ["./dist/string/index.d.ts"],
28
- "object": ["./dist/object/index.d.ts"],
29
- "math": ["./dist/math/index.d.ts"],
30
- "file": ["./dist/file/index.d.ts"],
31
- "device": ["./dist/device/index.d.ts"],
32
- "date": ["./dist/date/index.d.ts"],
33
- "email": ["./dist/email/index.d.ts"],
34
- "gameboi": ["./dist/gameboi/index.d.ts"],
35
- "images": ["./dist/images/index.d.ts"],
36
- "name": ["./dist/name/index.d.ts"],
37
- "permission": ["./dist/permission/index.d.ts"],
38
- "response": ["./dist/response/index.d.ts"],
39
- "xconsole": ["./dist/xconsole/index.d.ts"],
40
- "cached": ["./dist/cached/index.d.ts"],
41
- "html": ["./dist/html/index.d.ts"],
42
- "lib": ["./dist/lib/index.d.ts"]
25
+ "*": [
26
+ "./dist/index.d.ts"
27
+ ],
28
+ "array": [
29
+ "./dist/array/index.d.ts"
30
+ ],
31
+ "string": [
32
+ "./dist/string/index.d.ts"
33
+ ],
34
+ "object": [
35
+ "./dist/object/index.d.ts"
36
+ ],
37
+ "math": [
38
+ "./dist/math/index.d.ts"
39
+ ],
40
+ "file": [
41
+ "./dist/file/index.d.ts"
42
+ ],
43
+ "device": [
44
+ "./dist/device/index.d.ts"
45
+ ],
46
+ "date": [
47
+ "./dist/date/index.d.ts"
48
+ ],
49
+ "email": [
50
+ "./dist/email/index.d.ts"
51
+ ],
52
+ "gameboi": [
53
+ "./dist/gameboi/index.d.ts"
54
+ ],
55
+ "images": [
56
+ "./dist/images/index.d.ts"
57
+ ],
58
+ "name": [
59
+ "./dist/name/index.d.ts"
60
+ ],
61
+ "permission": [
62
+ "./dist/permission/index.d.ts"
63
+ ],
64
+ "response": [
65
+ "./dist/response/index.d.ts"
66
+ ],
67
+ "xconsole": [
68
+ "./dist/xconsole/index.d.ts"
69
+ ],
70
+ "cached": [
71
+ "./dist/cached/index.d.ts"
72
+ ],
73
+ "html": [
74
+ "./dist/html/index.d.ts"
75
+ ],
76
+ "lib": [
77
+ "./dist/lib/index.d.ts"
78
+ ]
43
79
  }
44
80
  },
45
81
  "exports": {
46
82
  ".": {
47
83
  "types": "./dist/index.d.ts",
48
- "import": "./esm/index.js",
84
+ "import": "./dist/index.js",
49
85
  "require": "./dist/index.js"
50
86
  },
51
87
  "./array": {
52
88
  "types": "./dist/array/index.d.ts",
53
- "import": "./esm/array/index.js",
89
+ "import": "./dist/array/index.js",
54
90
  "require": "./dist/array/index.js"
55
91
  },
56
92
  "./string": {
57
93
  "types": "./dist/string/index.d.ts",
58
- "import": "./esm/string/index.js",
94
+ "import": "./dist/string/index.js",
59
95
  "require": "./dist/string/index.js"
60
96
  },
61
97
  "./object": {
62
98
  "types": "./dist/object/index.d.ts",
63
- "import": "./esm/object/index.js",
99
+ "import": "./dist/object/index.js",
64
100
  "require": "./dist/object/index.js"
65
101
  },
66
102
  "./math": {
67
103
  "types": "./dist/math/index.d.ts",
68
- "import": "./esm/math/index.js",
104
+ "import": "./dist/math/index.js",
69
105
  "require": "./dist/math/index.js"
70
106
  },
71
107
  "./file": {
72
108
  "types": "./dist/file/index.d.ts",
73
- "import": "./esm/file/index.js",
109
+ "import": "./dist/file/index.js",
74
110
  "require": "./dist/file/index.js"
75
111
  },
76
112
  "./device": {
77
113
  "types": "./dist/device/index.d.ts",
78
- "import": "./esm/device/index.js",
114
+ "import": "./dist/device/index.js",
79
115
  "require": "./dist/device/index.js"
80
116
  },
81
117
  "./date": {
82
118
  "types": "./dist/date/index.d.ts",
83
- "import": "./esm/date/index.js",
119
+ "import": "./dist/date/index.js",
84
120
  "require": "./dist/date/index.js"
85
121
  },
86
122
  "./email": {
87
123
  "types": "./dist/email/index.d.ts",
88
- "import": "./esm/email/index.js",
124
+ "import": "./dist/email/index.js",
89
125
  "require": "./dist/email/index.js"
90
126
  },
91
127
  "./gameboi": {
92
128
  "types": "./dist/gameboi/index.d.ts",
93
- "import": "./esm/gameboi/index.js",
129
+ "import": "./dist/gameboi/index.js",
94
130
  "require": "./dist/gameboi/index.js"
95
131
  },
96
132
  "./images": {
97
133
  "types": "./dist/images/index.d.ts",
98
- "import": "./esm/images/index.js",
134
+ "import": "./dist/images/index.js",
99
135
  "require": "./dist/images/index.js"
100
136
  },
101
137
  "./name": {
102
138
  "types": "./dist/name/index.d.ts",
103
- "import": "./esm/name/index.js",
139
+ "import": "./dist/name/index.js",
104
140
  "require": "./dist/name/index.js"
105
141
  },
106
142
  "./permission": {
107
143
  "types": "./dist/permission/index.d.ts",
108
- "import": "./esm/permission/index.js",
144
+ "import": "./dist/permission/index.js",
109
145
  "require": "./dist/permission/index.js"
110
146
  },
111
147
  "./response": {
112
148
  "types": "./dist/response/index.d.ts",
113
- "import": "./esm/response/index.js",
149
+ "import": "./dist/response/index.js",
114
150
  "require": "./dist/response/index.js"
115
151
  },
116
152
  "./xconsole": {
117
153
  "types": "./dist/xconsole/index.d.ts",
118
- "import": "./esm/xconsole/index.js",
154
+ "import": "./dist/xconsole/index.js",
119
155
  "require": "./dist/xconsole/index.js"
120
156
  },
121
157
  "./cached": {
122
158
  "types": "./dist/cached/index.d.ts",
123
- "import": "./esm/cached/index.js",
159
+ "import": "./dist/cached/index.js",
124
160
  "require": "./dist/cached/index.js"
125
161
  },
126
162
  "./html": {
127
163
  "types": "./dist/html/index.d.ts",
128
- "import": "./esm/html/index.js",
164
+ "import": "./dist/html/index.js",
129
165
  "require": "./dist/html/index.js"
130
166
  },
131
167
  "./lib": {
132
168
  "types": "./dist/lib/index.d.ts",
133
- "import": "./esm/lib/index.js",
169
+ "import": "./dist/lib/index.js",
134
170
  "require": "./dist/lib/index.js"
135
171
  }
136
172
  },