@mlut/core 2.3.0 → 2.3.1
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/dist/jit/JitEngine.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { path } from '../utils/path.js';
|
|
2
2
|
import { logger } from '../utils/index.js';
|
|
3
|
-
const isNode = globalThis.
|
|
3
|
+
const isNode = globalThis.window?.document === undefined;
|
|
4
4
|
const isTestEnv = globalThis.process?.env?.NODE_ENV === 'test';
|
|
5
5
|
const sass = await import('sass-embedded')
|
|
6
6
|
.catch(() => import('sass'))
|
|
7
|
-
.catch(() => import('https://jspm.dev/sass'))
|
|
8
7
|
.catch(() => {
|
|
9
8
|
throw new Error('The Sass package is not installed. You can do this with `npm i -D sass-embedded`');
|
|
10
9
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const retryPromise = import('
|
|
2
|
-
.catch(() => import('
|
|
1
|
+
const retryPromise = import('@octokit/plugin-retry')
|
|
2
|
+
.catch(() => import('https://esm.sh/@octokit/plugin-retry'))
|
|
3
3
|
.then((r) => r.retry);
|
|
4
|
-
const octokit = await import('
|
|
5
|
-
.catch(() => import('
|
|
4
|
+
const octokit = await import('@octokit/rest')
|
|
5
|
+
.catch(() => import('https://esm.sh/@octokit/rest'))
|
|
6
6
|
.then(async (r) => {
|
|
7
7
|
const retry = await retryPromise;
|
|
8
8
|
const ctr = r.Octokit.plugin(retry);
|
package/dist/utils/path.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const path = await import('
|
|
2
|
-
.catch(() => import('
|
|
1
|
+
export const path = await import('path')
|
|
2
|
+
.catch(() => import('https://esm.sh/path-browserify-esm'))
|
|
3
3
|
.then((r) => r.default);
|