@node-projects/web-component-designer 0.1.3 → 0.1.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.
|
@@ -5,14 +5,7 @@ import { removeLeading, removeTrailing } from "./Helper.js";
|
|
|
5
5
|
//TODO: remove this code when import asserts are supported
|
|
6
6
|
let packageHacks;
|
|
7
7
|
//@ts-ignore
|
|
8
|
-
|
|
9
|
-
const packageHacksUrl = import.meta.resolve('./NpmPackageHacks.json');
|
|
10
|
-
//@ts-ignore
|
|
11
|
-
packageHacks = await importShim(packageHacksUrl, { assert: { type: 'json' } });
|
|
12
|
-
}
|
|
13
|
-
else
|
|
14
|
-
//@ts-ignore
|
|
15
|
-
packageHacks = await import("./NpmPackageHacks.json", { assert: { type: 'json' } });
|
|
8
|
+
packageHacks = await import("./NpmPackageHacks.json", { assert: { type: 'json' } });
|
|
16
9
|
if (packageHacks.default)
|
|
17
10
|
packageHacks = packageHacks.default;
|
|
18
11
|
export class NpmPackageLoader {
|
|
@@ -6,14 +6,7 @@ import { NodeType } from '../../../item/NodeType.js';
|
|
|
6
6
|
//TODO: remove this code when import asserts are supported
|
|
7
7
|
let cssProperties;
|
|
8
8
|
//@ts-ignore
|
|
9
|
-
|
|
10
|
-
const cssPropertiesUrl = import.meta.resolve('./CssProperties.json');
|
|
11
|
-
//@ts-ignore
|
|
12
|
-
cssProperties = await importShim(cssPropertiesUrl, { assert: { type: 'json' } });
|
|
13
|
-
}
|
|
14
|
-
else
|
|
15
|
-
//@ts-ignore
|
|
16
|
-
cssProperties = await import("./CssProperties.json", { assert: { type: 'json' } });
|
|
9
|
+
cssProperties = await import("./CssProperties.json", { assert: { type: 'json' } });
|
|
17
10
|
if (cssProperties.default)
|
|
18
11
|
cssProperties = cssProperties.default;
|
|
19
12
|
const localName = '<local>';
|
|
@@ -8,14 +8,7 @@ import { MetricsPropertyEditor } from '../propertyEditors/special/MetricsPropert
|
|
|
8
8
|
//TODO: remove this code when import asserts are supported
|
|
9
9
|
let cssProperties;
|
|
10
10
|
//@ts-ignore
|
|
11
|
-
|
|
12
|
-
const cssPropertiesUrl = import.meta.resolve('./CssProperties.json');
|
|
13
|
-
//@ts-ignore
|
|
14
|
-
cssProperties = await importShim(cssPropertiesUrl, { assert: { type: 'json' } });
|
|
15
|
-
}
|
|
16
|
-
else
|
|
17
|
-
//@ts-ignore
|
|
18
|
-
cssProperties = await import("./CssProperties.json", { assert: { type: 'json' } });
|
|
11
|
+
cssProperties = await import("./CssProperties.json", { assert: { type: 'json' } });
|
|
19
12
|
if (cssProperties.default)
|
|
20
13
|
cssProperties = cssProperties.default;
|
|
21
14
|
export class CssPropertiesService extends CommonPropertiesService {
|