piral-solid 0.15.0-alpha.4098 → 0.15.0-alpha.4122
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/convert.d.ts +2 -2
- package/convert.js +4 -9
- package/package.json +20 -4
package/convert.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface SolidConverter {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function createSolidConverter(...params: Parameters<typeof createConverter>): {
|
|
14
14
|
from: SolidConverter;
|
|
15
|
-
Extension:
|
|
15
|
+
Extension: Component<any>;
|
|
16
16
|
};
|
|
17
|
-
declare const fromSolid: SolidConverter, SolidExtension:
|
|
17
|
+
declare const fromSolid: SolidConverter, SolidExtension: Component<any>;
|
|
18
18
|
export { fromSolid, SolidExtension };
|
package/convert.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SolidExtension = exports.fromSolid = exports.createSolidConverter = void 0;
|
|
4
|
-
var converter_1 = require("./esm/converter");
|
|
5
|
-
function createSolidConverter() {
|
|
1
|
+
import { createConverter } from './esm/converter';
|
|
2
|
+
export function createSolidConverter() {
|
|
6
3
|
var params = [];
|
|
7
4
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8
5
|
params[_i] = arguments[_i];
|
|
9
6
|
}
|
|
10
|
-
var convert =
|
|
7
|
+
var convert = createConverter.apply(void 0, params);
|
|
11
8
|
var Extension = convert.Extension;
|
|
12
9
|
var from = function (root) { return ({
|
|
13
10
|
type: 'html',
|
|
@@ -15,7 +12,5 @@ function createSolidConverter() {
|
|
|
15
12
|
}); };
|
|
16
13
|
return { from: from, Extension: Extension };
|
|
17
14
|
}
|
|
18
|
-
exports.createSolidConverter = createSolidConverter;
|
|
19
15
|
var _a = createSolidConverter(), fromSolid = _a.from, SolidExtension = _a.Extension;
|
|
20
|
-
|
|
21
|
-
exports.SolidExtension = SolidExtension;
|
|
16
|
+
export { fromSolid, SolidExtension };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-solid",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.4122",
|
|
4
4
|
"description": "Plugin for integrating Solid components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -19,6 +19,22 @@
|
|
|
19
19
|
"module": "esm/index.js",
|
|
20
20
|
"main": "lib/index.js",
|
|
21
21
|
"typings": "lib/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./esm/index.js",
|
|
25
|
+
"require": "./lib/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./convert": {
|
|
28
|
+
"import": "./convert.js"
|
|
29
|
+
},
|
|
30
|
+
"./esm/": {
|
|
31
|
+
"import": "./esm/"
|
|
32
|
+
},
|
|
33
|
+
"./lib/": {
|
|
34
|
+
"require": "./lib/"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
22
38
|
"sideEffects": false,
|
|
23
39
|
"files": [
|
|
24
40
|
"esm",
|
|
@@ -37,18 +53,18 @@
|
|
|
37
53
|
"scripts": {
|
|
38
54
|
"cleanup": "rimraf esm lib convert.d.ts convert.js",
|
|
39
55
|
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
|
|
40
|
-
"build:convert": "tsc convert.ts --skipLibCheck --declaration",
|
|
56
|
+
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
|
|
41
57
|
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
|
|
42
58
|
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
|
|
43
59
|
"typedoc": "typedoc --json ../../../docs/types/piral-solid.json src --exclude \"src/**/*.test.*\"",
|
|
44
60
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
45
61
|
},
|
|
46
62
|
"devDependencies": {
|
|
47
|
-
"piral-core": "0.15.0-alpha.
|
|
63
|
+
"piral-core": "0.15.0-alpha.4122",
|
|
48
64
|
"solid-js": "^0.18.7"
|
|
49
65
|
},
|
|
50
66
|
"peerDependencies": {
|
|
51
67
|
"solid-js": "^0.18.0"
|
|
52
68
|
},
|
|
53
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "fa0957fe7dedebbbd97a530e518c1a2b7754d475"
|
|
54
70
|
}
|