@drttix/drt-sdk 0.2.3 → 0.2.4

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '',
6
- VERSION: '20260204.1',
6
+ VERSION: '20260210.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -26,4 +26,5 @@ export type ProductDetailResponseDto = {
26
26
  customTextExample: string;
27
27
  noDefaultOption: number;
28
28
  showGroupId: number;
29
+ imageUrl: string;
29
30
  };
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20260204.1',
3
+ VERSION: '20260210.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -26,4 +26,5 @@ export type ProductDetailResponseDto = {
26
26
  customTextExample: string;
27
27
  noDefaultOption: number;
28
28
  showGroupId: number;
29
+ imageUrl: string;
29
30
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -4,47 +4,56 @@ import path from 'path';
4
4
 
5
5
  const root = path.resolve(process.cwd(), 'dist/esm/src');
6
6
 
7
- const EXT_WHITELIST = ['.js', '.mjs', '.cjs', '.json', '.css', '.scss', '.d.ts'];
7
+ const EXT_WHITELIST = [
8
+ '.js',
9
+ '.mjs',
10
+ '.cjs',
11
+ '.json',
12
+ '.css',
13
+ '.scss',
14
+ '.d.ts',
15
+ ];
8
16
 
9
17
  function hasExt(p) {
10
- return EXT_WHITELIST.some((ext) => p.endsWith(ext));
18
+ return EXT_WHITELIST.some((ext) => p.endsWith(ext));
11
19
  }
12
20
 
13
21
  async function walk(dir) {
14
- const entries = await fs.readdir(dir, { withFileTypes: true });
15
- for (const e of entries) {
16
- const p = path.join(dir, e.name);
17
- if (e.isDirectory()) await walk(p);
18
- else if (e.isFile() && p.endsWith('.js')) await fixFile(p);
19
- }
22
+ const entries = await fs.readdir(dir, { withFileTypes: true });
23
+ for (const e of entries) {
24
+ const p = path.join(dir, e.name);
25
+ if (e.isDirectory()) await walk(p);
26
+ else if (e.isFile() && p.endsWith('.js')) await fixFile(p);
27
+ }
20
28
  }
21
29
 
22
30
  async function fixFile(file) {
23
- let src = await fs.readFile(file, 'utf8');
24
- const regex = /(["'])(\.\.?\/[^"']*?)(["'])/g;
25
- let changed = false;
26
- src = src.replace(regex, (m, q1, spec, q3) => {
27
- // ignore absolute URLs and imports that already have extensions
28
- if (/^https?:\/\//.test(spec) || /^\//.test(spec)) return `${q1}${spec}${q3}`;
29
- if (hasExt(spec)) return `${q1}${spec}${q3}`;
30
- // append .js
31
- changed = true;
32
- return `${q1}${spec}.js${q3}`;
33
- });
34
- if (changed) {
35
- await fs.writeFile(file, src, 'utf8');
36
- console.log('Patched', path.relative(process.cwd(), file));
37
- }
31
+ let src = await fs.readFile(file, 'utf8');
32
+ const regex = /(["'])(\.\.?\/[^"']*?)(["'])/g;
33
+ let changed = false;
34
+ src = src.replace(regex, (m, q1, spec, q3) => {
35
+ // ignore absolute URLs and imports that already have extensions
36
+ if (/^https?:\/\//.test(spec) || /^\//.test(spec))
37
+ return `${q1}${spec}${q3}`;
38
+ if (hasExt(spec)) return `${q1}${spec}${q3}`;
39
+ // append .js
40
+ changed = true;
41
+ return `${q1}${spec}.js${q3}`;
42
+ });
43
+ if (changed) {
44
+ await fs.writeFile(file, src, 'utf8');
45
+ console.log('Patched', path.relative(process.cwd(), file));
46
+ }
38
47
  }
39
48
 
40
49
  async function main() {
41
- try {
42
- await walk(root);
43
- console.log('Done.');
44
- } catch (err) {
45
- console.error(err);
46
- process.exit(1);
47
- }
50
+ try {
51
+ await walk(root);
52
+ console.log('Done.');
53
+ } catch (err) {
54
+ console.error(err);
55
+ process.exit(1);
56
+ }
48
57
  }
49
58
 
50
59
  main();
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20260204.1',
24
+ VERSION: '20260210.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -30,5 +30,6 @@ export type ProductDetailResponseDto = {
30
30
  customTextExample: string;
31
31
  noDefaultOption: number;
32
32
  showGroupId: number;
33
+ imageUrl: string;
33
34
  };
34
35