bmdl-sdk 2.0.37 → 2.0.39

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.
Files changed (168) hide show
  1. package/dist/BUILD_ID +1 -1
  2. package/dist/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +1 -1
  3. package/dist/build/chunks/{node_modules_20v-8wl._.js → node_modules_05oslht._.js} +1424 -1869
  4. package/dist/build/chunks/node_modules_05oslht._.js.map +47 -0
  5. package/dist/build-manifest.json +6 -6
  6. package/dist/cache/.tsbuildinfo +1 -1
  7. package/dist/diagnostics/route-bundle-stats.json +8 -8
  8. package/dist/fallback-build-manifest.json +3 -3
  9. package/dist/next-server.js.nft.json +1 -1
  10. package/dist/server/app/_global-error/page/build-manifest.json +3 -3
  11. package/dist/server/app/_global-error/page.js.nft.json +1 -1
  12. package/dist/server/app/_global-error/page_client-reference-manifest.js +1 -1
  13. package/dist/server/app/_global-error.html +1 -1
  14. package/dist/server/app/_global-error.rsc +1 -1
  15. package/dist/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  16. package/dist/server/app/_global-error.segments/_full.segment.rsc +1 -1
  17. package/dist/server/app/_global-error.segments/_head.segment.rsc +1 -1
  18. package/dist/server/app/_global-error.segments/_index.segment.rsc +1 -1
  19. package/dist/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/dist/server/app/_not-found/page/build-manifest.json +3 -3
  21. package/dist/server/app/_not-found/page.js.nft.json +1 -1
  22. package/dist/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/dist/server/app/_not-found.html +1 -1
  24. package/dist/server/app/_not-found.rsc +2 -2
  25. package/dist/server/app/_not-found.segments/_full.segment.rsc +2 -2
  26. package/dist/server/app/_not-found.segments/_head.segment.rsc +1 -1
  27. package/dist/server/app/_not-found.segments/_index.segment.rsc +2 -2
  28. package/dist/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  29. package/dist/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  30. package/dist/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  31. package/dist/server/app/api/component/route.js +1 -1
  32. package/dist/server/app/api/component/route.js.nft.json +1 -1
  33. package/dist/server/app/index.html +1 -1
  34. package/dist/server/app/index.rsc +3 -3
  35. package/dist/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  36. package/dist/server/app/index.segments/_full.segment.rsc +3 -3
  37. package/dist/server/app/index.segments/_head.segment.rsc +1 -1
  38. package/dist/server/app/index.segments/_index.segment.rsc +2 -2
  39. package/dist/server/app/index.segments/_tree.segment.rsc +2 -2
  40. package/dist/server/app/page/build-manifest.json +3 -3
  41. package/dist/server/app/page.js.nft.json +1 -1
  42. package/dist/server/app/page_client-reference-manifest.js +1 -1
  43. package/dist/server/chunks/[root-of-the-server]__1ewn43n._.js +11 -0
  44. package/dist/server/chunks/[root-of-the-server]__1ewn43n._.js.map +1 -0
  45. package/dist/server/chunks/ssr/{[root-of-the-server]__1vhgpuw._.js → [root-of-the-server]__1tcd_jn._.js} +2 -2
  46. package/dist/server/chunks/ssr/[root-of-the-server]__1tcd_jn._.js.map +1 -0
  47. package/dist/server/chunks/ssr/{[root-of-the-server]__1fno3kn._.js → [root-of-the-server]__1w1ep09._.js} +2 -2
  48. package/dist/server/chunks/ssr/[root-of-the-server]__1w1ep09._.js.map +1 -0
  49. package/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js +1 -1
  50. package/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js.map +1 -1
  51. package/dist/server/chunks/ssr/{node_modules_next_dist_18tu5cb._.js → node_modules_next_dist_1vgd_ru._.js} +2 -2
  52. package/dist/server/chunks/ssr/node_modules_next_dist_1vgd_ru._.js.map +1 -0
  53. package/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js +4 -4
  54. package/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js.map +1 -1
  55. package/dist/server/middleware-build-manifest.js +6 -6
  56. package/dist/server/pages/404.html +1 -1
  57. package/dist/server/pages/500.html +1 -1
  58. package/dist/standalone/dist/BUILD_ID +1 -1
  59. package/dist/standalone/dist/build-manifest.json +6 -6
  60. package/dist/standalone/dist/server/app/_global-error/page/build-manifest.json +3 -3
  61. package/dist/standalone/dist/server/app/_global-error/page.js.nft.json +1 -1
  62. package/dist/standalone/dist/server/app/_global-error/page_client-reference-manifest.js +1 -1
  63. package/dist/standalone/dist/server/app/_global-error.html +1 -1
  64. package/dist/standalone/dist/server/app/_global-error.rsc +1 -1
  65. package/dist/standalone/dist/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  66. package/dist/standalone/dist/server/app/_global-error.segments/_full.segment.rsc +1 -1
  67. package/dist/standalone/dist/server/app/_global-error.segments/_head.segment.rsc +1 -1
  68. package/dist/standalone/dist/server/app/_global-error.segments/_index.segment.rsc +1 -1
  69. package/dist/standalone/dist/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  70. package/dist/standalone/dist/server/app/_not-found/page/build-manifest.json +3 -3
  71. package/dist/standalone/dist/server/app/_not-found/page.js.nft.json +1 -1
  72. package/dist/standalone/dist/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/dist/standalone/dist/server/app/_not-found.html +1 -1
  74. package/dist/standalone/dist/server/app/_not-found.rsc +2 -2
  75. package/dist/standalone/dist/server/app/_not-found.segments/_full.segment.rsc +2 -2
  76. package/dist/standalone/dist/server/app/_not-found.segments/_head.segment.rsc +1 -1
  77. package/dist/standalone/dist/server/app/_not-found.segments/_index.segment.rsc +2 -2
  78. package/dist/standalone/dist/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  79. package/dist/standalone/dist/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  80. package/dist/standalone/dist/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  81. package/dist/standalone/dist/server/app/api/component/route.js +1 -1
  82. package/dist/standalone/dist/server/app/api/component/route.js.nft.json +1 -1
  83. package/dist/standalone/dist/server/app/index.html +1 -1
  84. package/dist/standalone/dist/server/app/index.rsc +3 -3
  85. package/dist/standalone/dist/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  86. package/dist/standalone/dist/server/app/index.segments/_full.segment.rsc +3 -3
  87. package/dist/standalone/dist/server/app/index.segments/_head.segment.rsc +1 -1
  88. package/dist/standalone/dist/server/app/index.segments/_index.segment.rsc +2 -2
  89. package/dist/standalone/dist/server/app/index.segments/_tree.segment.rsc +2 -2
  90. package/dist/standalone/dist/server/app/page/build-manifest.json +3 -3
  91. package/dist/standalone/dist/server/app/page.js.nft.json +1 -1
  92. package/dist/standalone/dist/server/app/page_client-reference-manifest.js +1 -1
  93. package/dist/standalone/dist/server/chunks/[root-of-the-server]__1ewn43n._.js +11 -0
  94. package/dist/standalone/dist/server/chunks/ssr/{[root-of-the-server]__1vhgpuw._.js → [root-of-the-server]__1tcd_jn._.js} +2 -2
  95. package/dist/standalone/dist/server/chunks/ssr/{[root-of-the-server]__1fno3kn._.js → [root-of-the-server]__1w1ep09._.js} +2 -2
  96. package/dist/standalone/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js +1 -1
  97. package/dist/standalone/dist/server/chunks/ssr/{node_modules_next_dist_18tu5cb._.js → node_modules_next_dist_1vgd_ru._.js} +2 -2
  98. package/dist/standalone/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js +4 -4
  99. package/dist/standalone/dist/server/middleware-build-manifest.js +6 -6
  100. package/dist/standalone/dist/server/pages/404.html +1 -1
  101. package/dist/standalone/dist/server/pages/500.html +1 -1
  102. package/dist/standalone/dist/static/chunks/0atut6a2uuyid.js +5 -0
  103. package/dist/standalone/dist/static/chunks/1jq4o6yq14o4c.js +31 -0
  104. package/dist/standalone/dist/static/chunks/2c5nzc2ljqups.css +3 -0
  105. package/dist/standalone/dist/static/chunks/2cwj6u4m-2xhv.js +4 -0
  106. package/dist/{static/chunks/turbopack-2d7f32bwbsmp8.js → standalone/dist/static/chunks/turbopack-38l7qwik-h828.js} +1 -1
  107. package/dist/standalone/node_modules/@swc/core/LICENSE +201 -0
  108. package/dist/standalone/node_modules/@swc/core/README.md +100 -0
  109. package/dist/standalone/node_modules/@swc/core/Visitor.js +1399 -0
  110. package/dist/standalone/node_modules/@swc/core/binding.js +368 -0
  111. package/dist/standalone/node_modules/@swc/core/index.js +466 -0
  112. package/dist/standalone/node_modules/@swc/core/package.json +119 -0
  113. package/dist/standalone/node_modules/@swc/core/postinstall.js +148 -0
  114. package/dist/standalone/node_modules/@swc/core/spack.js +87 -0
  115. package/dist/standalone/node_modules/@swc/core/util.js +103 -0
  116. package/dist/standalone/node_modules/@swc/core-win32-x64-msvc/package.json +43 -0
  117. package/dist/standalone/node_modules/@swc/core-win32-x64-msvc/swc.win32-x64-msvc.node +0 -0
  118. package/dist/standalone/package.json +8 -1
  119. package/dist/static/chunks/0atut6a2uuyid.js +5 -0
  120. package/dist/static/chunks/1jq4o6yq14o4c.js +31 -0
  121. package/dist/static/chunks/2c5nzc2ljqups.css +3 -0
  122. package/dist/static/chunks/2cwj6u4m-2xhv.js +4 -0
  123. package/dist/{standalone/dist/static/chunks/turbopack-2d7f32bwbsmp8.js → static/chunks/turbopack-38l7qwik-h828.js} +1 -1
  124. package/dist/trace +1 -1
  125. package/dist/trace-build +1 -1
  126. package/package.json +8 -1
  127. package/dist/build/chunks/node_modules_20v-8wl._.js.map +0 -47
  128. package/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js +0 -11
  129. package/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js.map +0 -1
  130. package/dist/server/chunks/ssr/[root-of-the-server]__1fno3kn._.js.map +0 -1
  131. package/dist/server/chunks/ssr/[root-of-the-server]__1vhgpuw._.js.map +0 -1
  132. package/dist/server/chunks/ssr/node_modules_next_dist_18tu5cb._.js.map +0 -1
  133. package/dist/standalone/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js +0 -11
  134. package/dist/standalone/dist/static/chunks/0ie0zj6s4jns8.js +0 -5
  135. package/dist/standalone/dist/static/chunks/1zm_64y3b_d7d.js +0 -4
  136. package/dist/standalone/dist/static/chunks/2ovwin8y5r_vj.css +0 -3
  137. package/dist/standalone/dist/static/chunks/3l2cn98nr6ga3.js +0 -31
  138. package/dist/static/chunks/0ie0zj6s4jns8.js +0 -5
  139. package/dist/static/chunks/1zm_64y3b_d7d.js +0 -4
  140. package/dist/static/chunks/2ovwin8y5r_vj.css +0 -3
  141. package/dist/static/chunks/3l2cn98nr6ga3.js +0 -31
  142. /package/dist/standalone/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_buildManifest.js +0 -0
  143. /package/dist/standalone/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_clientMiddlewareManifest.js +0 -0
  144. /package/dist/standalone/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_ssgManifest.js +0 -0
  145. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/comparator.js +0 -0
  146. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/range.js +0 -0
  147. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/semver.js +0 -0
  148. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/cmp.js +0 -0
  149. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/coerce.js +0 -0
  150. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/compare.js +0 -0
  151. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/eq.js +0 -0
  152. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/gt.js +0 -0
  153. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/gte.js +0 -0
  154. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/lt.js +0 -0
  155. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/lte.js +0 -0
  156. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/neq.js +0 -0
  157. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/parse.js +0 -0
  158. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/satisfies.js +0 -0
  159. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/constants.js +0 -0
  160. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/debug.js +0 -0
  161. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/identifiers.js +0 -0
  162. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/lrucache.js +0 -0
  163. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/parse-options.js +0 -0
  164. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/re.js +0 -0
  165. /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/package.json +0 -0
  166. /package/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_buildManifest.js +0 -0
  167. /package/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_clientMiddlewareManifest.js +0 -0
  168. /package/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_ssgManifest.js +0 -0
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ /**
36
+ * A postinstall script runs after `@swc/core` is installed.
37
+ *
38
+ * It checks if corresponding optional dependencies for native binary is installed and can be loaded properly.
39
+ * If it fails, it'll internally try to install `@swc/wasm` as fallback.
40
+ */
41
+ const fs_1 = require("fs");
42
+ const assert = __importStar(require("assert"));
43
+ const path = __importStar(require("path"));
44
+ const child_process = __importStar(require("child_process"));
45
+ const fs = __importStar(require("fs"));
46
+ function removeRecursive(dir) {
47
+ for (const entry of fs.readdirSync(dir)) {
48
+ const entryPath = path.join(dir, entry);
49
+ let stats;
50
+ try {
51
+ stats = fs.lstatSync(entryPath);
52
+ }
53
+ catch (_a) {
54
+ continue; // Guard against https://github.com/nodejs/node/issues/4760
55
+ }
56
+ if (stats.isDirectory())
57
+ removeRecursive(entryPath);
58
+ else
59
+ fs.unlinkSync(entryPath);
60
+ }
61
+ fs.rmdirSync(dir);
62
+ }
63
+ /**
64
+ * Trying to validate @swc/core's native binary installation, then installs if it is not supported.
65
+ */
66
+ const validateBinary = () => __awaiter(void 0, void 0, void 0, function* () {
67
+ var _a;
68
+ try {
69
+ const { name } = require(path.resolve(process.env.INIT_CWD, "package.json"));
70
+ if (name === "@swc/core" || name === "@swc/workspace") {
71
+ return;
72
+ }
73
+ }
74
+ catch (_) {
75
+ return;
76
+ }
77
+ // TODO: We do not take care of the case if user try to install with `--no-optional`.
78
+ // For now, it is considered as deliberate decision.
79
+ let binding;
80
+ try {
81
+ binding = require("./binding.js");
82
+ // Check if binding binary actually works.
83
+ // For the latest version, checks target triple. If it's old version doesn't have target triple, use parseSync instead.
84
+ const triple = binding.getTargetTriple
85
+ ? binding.getTargetTriple()
86
+ : binding.parseSync("console.log()", Buffer.from(JSON.stringify({ syntax: "ecmascript" })));
87
+ assert.ok(triple, "Failed to read target triple from native binary.");
88
+ }
89
+ catch (error) {
90
+ // if error is unsupported architecture, ignore to display.
91
+ if (!((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes("Unsupported architecture"))) {
92
+ console.warn(error);
93
+ }
94
+ console.warn(`@swc/core was not able to resolve native bindings installation. It'll try to use @swc/wasm as fallback instead.`);
95
+ }
96
+ if (!!binding) {
97
+ return;
98
+ }
99
+ // User choose to override the binary installation. Skip remanining validation.
100
+ if (!!process.env["SWC_BINARY_PATH"]) {
101
+ console.warn(`@swc/core could not resolve native bindings installation, but found manual override config SWC_BINARY_PATH specified. Skipping remaning validation.`);
102
+ return;
103
+ }
104
+ // Check if top-level package.json installs @swc/wasm separately already
105
+ let wasmBinding;
106
+ try {
107
+ wasmBinding = require.resolve(`@swc/wasm`);
108
+ }
109
+ catch (_) { }
110
+ if (!!wasmBinding && (0, fs_1.existsSync)(wasmBinding)) {
111
+ return;
112
+ }
113
+ const env = Object.assign(Object.assign({}, process.env), { npm_config_global: undefined });
114
+ const { version } = require(path.join(path.dirname(require.resolve("@swc/core")), "package.json"));
115
+ // We want to place @swc/wasm next to the @swc/core as if normal installation was done,
116
+ // but can't directly set cwd to INIT_CWD as npm seems to acquire lock to the working dir.
117
+ // Instead, create a temporary inner and move it out.
118
+ const coreDir = path.dirname(require.resolve("@swc/core"));
119
+ const installDir = path.join(coreDir, "npm-install");
120
+ try {
121
+ fs.mkdirSync(installDir);
122
+ fs.writeFileSync(path.join(installDir, "package.json"), "{}");
123
+ // Instead of carrying over own dependencies to download & resolve package which increases installation sizes of `@swc/core`,
124
+ // assume & relies on system's npm installation.
125
+ child_process.execSync(`npm install --no-save --loglevel=error --prefer-offline --no-audit --progress=false @swc/wasm@${version}`, { cwd: installDir, stdio: "pipe", env });
126
+ const installedBinPath = path.join(installDir, "node_modules", `@swc/wasm`);
127
+ // INIT_CWD is injected via npm. If it doesn't exists, can't proceed.
128
+ fs.renameSync(installedBinPath, path.resolve(process.env.INIT_CWD, "node_modules", `@swc/wasm`));
129
+ }
130
+ catch (error) {
131
+ console.error(error);
132
+ console.error(`Failed to install fallback @swc/wasm@${version}. @swc/core will not properly.
133
+ Please install @swc/wasm manually, or retry whole installation.
134
+ If there are unexpected errors, please report at https://github.com/swc-project/swc/issues`);
135
+ }
136
+ finally {
137
+ try {
138
+ removeRecursive(installDir);
139
+ }
140
+ catch (_) {
141
+ // Gracefully ignore any failures. This'll make few leftover files but it shouldn't block installation.
142
+ }
143
+ }
144
+ });
145
+ validateBinary().catch((error) => {
146
+ // for now just throw the error as-is.
147
+ throw error;
148
+ });
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.isLocalFile = void 0;
36
+ exports.compileBundleOptions = compileBundleOptions;
37
+ exports.config = config;
38
+ const path = __importStar(require("path"));
39
+ exports.isLocalFile = /^\.{0,2}\//; // starts with '/' './' '../'
40
+ function compileBundleOptions(config) {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ const f = config === undefined ? "." : config;
43
+ try {
44
+ const filepath = typeof f === "string" ? f : "spack.config.js";
45
+ const fileModule = exports.isLocalFile.test(filepath)
46
+ ? path.resolve(filepath)
47
+ : filepath;
48
+ let configFromFile = require(fileModule);
49
+ if (configFromFile.default) {
50
+ configFromFile = configFromFile.default;
51
+ }
52
+ if (Array.isArray(configFromFile)) {
53
+ if (Array.isArray(f)) {
54
+ return [...configFromFile, ...f];
55
+ }
56
+ if (typeof f !== "string") {
57
+ configFromFile.push(f);
58
+ }
59
+ return configFromFile;
60
+ }
61
+ return Object.assign(Object.assign({}, configFromFile), (typeof config === "string" ? {} : config));
62
+ }
63
+ catch (e) {
64
+ if (typeof f === "string") {
65
+ throw new Error(`Error occurred while loading config file at ${config}: ${e}`);
66
+ }
67
+ return f;
68
+ }
69
+ });
70
+ }
71
+ /**
72
+ * Usage: In `spack.config.js` / `spack.config.ts`, you can utilize type annotations (to get autocompletions) like
73
+ *
74
+ * ```ts
75
+ * import { config } from '@swc/core/spack';
76
+ *
77
+ * export default config({
78
+ * name: 'web',
79
+ * });
80
+ * ```
81
+ *
82
+ *
83
+ *
84
+ */
85
+ function config(c) {
86
+ return c;
87
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrapNativeSuper = wrapNativeSuper;
4
+ //@ts-ignore
5
+ function wrapNativeSuper(Class) {
6
+ var _cache = typeof Map === "function" ? new Map() : undefined;
7
+ //@ts-ignore
8
+ exports.wrapNativeSuper = wrapNativeSuper = function wrapNativeSuper(Class) {
9
+ if (Class === null || !_isNativeFunction(Class))
10
+ return Class;
11
+ if (typeof Class !== "function") {
12
+ throw new TypeError("Super expression must either be null or a function");
13
+ }
14
+ if (typeof _cache !== "undefined") {
15
+ if (_cache.has(Class))
16
+ return _cache.get(Class);
17
+ _cache.set(Class, Wrapper);
18
+ }
19
+ function Wrapper() {
20
+ //@ts-ignore
21
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
22
+ }
23
+ Wrapper.prototype = Object.create(Class.prototype, {
24
+ constructor: {
25
+ value: Wrapper,
26
+ enumerable: false,
27
+ writable: true,
28
+ configurable: true,
29
+ },
30
+ });
31
+ return _setPrototypeOf(Wrapper, Class);
32
+ };
33
+ return wrapNativeSuper(Class);
34
+ }
35
+ function isNativeReflectConstruct() {
36
+ if (typeof Reflect === "undefined" || !Reflect.construct)
37
+ return false;
38
+ //@ts-ignore
39
+ if (Reflect.construct.sham)
40
+ return false;
41
+ if (typeof Proxy === "function")
42
+ return true;
43
+ try {
44
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () { }));
45
+ return true;
46
+ }
47
+ catch (e) {
48
+ return false;
49
+ }
50
+ }
51
+ //@ts-ignore
52
+ function _construct(Parent, args, Class) {
53
+ if (isNativeReflectConstruct()) {
54
+ //@ts-ignore
55
+ _construct = Reflect.construct;
56
+ }
57
+ else {
58
+ //@ts-ignore
59
+ _construct = function _construct(Parent, args, Class) {
60
+ var a = [null];
61
+ a.push.apply(a, args);
62
+ //@ts-ignore
63
+ var Constructor = Function.bind.apply(Parent, a);
64
+ //@ts-ignore
65
+ var instance = new Constructor();
66
+ if (Class)
67
+ _setPrototypeOf(instance, Class.prototype);
68
+ return instance;
69
+ };
70
+ }
71
+ //@ts-ignore
72
+ return _construct.apply(null, arguments);
73
+ }
74
+ function _isNativeFunction(fn) {
75
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
76
+ }
77
+ //@ts-ignore
78
+ function _setPrototypeOf(o, p) {
79
+ //@ts-ignore
80
+ _setPrototypeOf =
81
+ Object.setPrototypeOf ||
82
+ //@ts-ignore
83
+ function _setPrototypeOf(o, p) {
84
+ o.__proto__ = p;
85
+ return o;
86
+ };
87
+ return _setPrototypeOf(o, p);
88
+ }
89
+ //@ts-ignore
90
+ function _getPrototypeOf(o) {
91
+ //@ts-ignore
92
+ _getPrototypeOf = Object.setPrototypeOf
93
+ ? Object.getPrototypeOf
94
+ : function _getPrototypeOf(
95
+ //@ts-ignore
96
+ o) {
97
+ return o.__proto__ || Object.getPrototypeOf(o);
98
+ };
99
+ return _getPrototypeOf(o);
100
+ }
101
+ module.exports = {
102
+ wrapNativeSuper,
103
+ };
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@swc/core-win32-x64-msvc",
3
+ "version": "1.15.46",
4
+ "os": [
5
+ "win32"
6
+ ],
7
+ "cpu": [
8
+ "x64"
9
+ ],
10
+ "main": "swc.win32-x64-msvc.node",
11
+ "files": [
12
+ "swc.win32-x64-msvc.node",
13
+ "swc.exe"
14
+ ],
15
+ "description": "Super-fast alternative for babel",
16
+ "keywords": [
17
+ "swc",
18
+ "swcpack",
19
+ "babel",
20
+ "typescript",
21
+ "rust",
22
+ "webpack",
23
+ "tsc"
24
+ ],
25
+ "author": "강동윤 <kdy1997.dev@gmail.com>",
26
+ "homepage": "https://swc.rs",
27
+ "license": "Apache-2.0 AND MIT",
28
+ "engines": {
29
+ "node": ">=10"
30
+ },
31
+ "publishConfig": {
32
+ "registry": "https://registry.npmjs.org/",
33
+ "access": "public",
34
+ "provenance": true
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/swc-project/swc.git"
39
+ },
40
+ "bugs": {
41
+ "url": "https://github.com/swc-project/swc/issues"
42
+ }
43
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmdl-sdk",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "bin": {
5
5
  "bmdl-sdk": "./bin/cli.js"
6
6
  },
@@ -19,6 +19,13 @@
19
19
  "prepublishOnly": "next build && npm run copy-assets"
20
20
  },
21
21
  "dependencies": {
22
+ "@babel/core": "^8.0.1",
23
+ "@babel/preset-env": "^8.0.2",
24
+ "@babel/preset-react": "^8.0.1",
25
+ "@babel/preset-typescript": "^8.0.1",
26
+ "@babel/standalone": "^8.0.4",
27
+ "@swc/core": "^1.15.46",
28
+ "@types/babel__standalone": "^7.1.9",
22
29
  "next": "16.2.10",
23
30
  "react": "19.2.4",
24
31
  "react-dom": "19.2.4"