nesquick 1.3.0 → 1.4.0
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/lib/Nesquick.js +16 -4
- package/lib/NesquickComponent.js +17 -17
- package/lib/cli/nesquick-tsc.js +12 -0
- package/lib/cli/processArgv.js +19 -0
- package/lib/cli/transformer.js +138 -0
- package/lib/cli/tsc.js +56 -0
- package/lib/index.js +3 -0
- package/lib/jsx-runtime.js +8 -16
- package/lib/no-transformer/jsx-dev-runtime.js +22 -0
- package/lib/no-transformer/jsx-runtime.js +32 -0
- package/lib/plugins/viteTransformerPlugin.js +28 -0
- package/lib/types/Nesquick.d.ts +1 -64
- package/lib/types/NesquickComponent.d.ts +0 -1
- package/lib/types/cli/nesquick-tsc.d.ts +2 -0
- package/lib/types/cli/processArgv.d.ts +1 -0
- package/lib/types/cli/transformer.d.ts +3 -0
- package/lib/types/cli/tsc.d.ts +7 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/jsx-runtime.d.ts +69 -4
- package/lib/types/no-transformer/jsx-dev-runtime.d.ts +9 -0
- package/lib/types/no-transformer/jsx-runtime.d.ts +72 -0
- package/lib/types/plugins/viteTransformerPlugin.d.ts +8 -0
- package/package.json +33 -4
package/lib/Nesquick.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
17
|
+
exports.Nesquick = void 0;
|
|
4
18
|
var Nesquick;
|
|
5
19
|
(function (Nesquick) {
|
|
6
20
|
function render(component, parent) {
|
|
@@ -14,6 +28,4 @@ var Nesquick;
|
|
|
14
28
|
Nesquick.render = render;
|
|
15
29
|
})(Nesquick || (exports.Nesquick = Nesquick = {}));
|
|
16
30
|
exports.default = Nesquick;
|
|
17
|
-
|
|
18
|
-
(function (JSX) {
|
|
19
|
-
})(JSX || (exports.JSX = JSX = {}));
|
|
31
|
+
__exportStar(require("./jsx-runtime"), exports);
|
package/lib/NesquickComponent.js
CHANGED
|
@@ -6,6 +6,21 @@ const SVGNamespaces = new Map([
|
|
|
6
6
|
["xlink", "http://www.w3.org/1999/xlink"],
|
|
7
7
|
["xml", "http://www.w3.org/XML/1998/namespace"]
|
|
8
8
|
]);
|
|
9
|
+
function getAttributeNs(attributes, k) {
|
|
10
|
+
const index = k.indexOf(":");
|
|
11
|
+
if (index > -1) {
|
|
12
|
+
const ns = k.substring(0, index);
|
|
13
|
+
const name = k.substring(index + 1);
|
|
14
|
+
const namespace = attributes.get(ns);
|
|
15
|
+
if (namespace != null) {
|
|
16
|
+
return {
|
|
17
|
+
namespace: namespace,
|
|
18
|
+
name: name
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
9
24
|
class NesquickComponent {
|
|
10
25
|
constructor(_render, props) {
|
|
11
26
|
this._render = _render;
|
|
@@ -72,21 +87,6 @@ class NesquickComponent {
|
|
|
72
87
|
setXmlns(xmlns) {
|
|
73
88
|
this._xmlns = xmlns;
|
|
74
89
|
}
|
|
75
|
-
_getAttributeNs(attributes, k) {
|
|
76
|
-
const index = k.indexOf(":");
|
|
77
|
-
if (index > -1) {
|
|
78
|
-
const ns = k.substring(0, index);
|
|
79
|
-
const name = k.substring(index + 1);
|
|
80
|
-
const namespace = attributes.get(ns);
|
|
81
|
-
if (namespace != null) {
|
|
82
|
-
return {
|
|
83
|
-
namespace: namespace,
|
|
84
|
-
name: name
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
90
|
_renderPropsNs(attributes, element, props) {
|
|
91
91
|
for (const k in props) {
|
|
92
92
|
if (k !== "children" && k !== "xmlns" && k !== "ref") {
|
|
@@ -98,7 +98,7 @@ class NesquickComponent {
|
|
|
98
98
|
element[k.toLowerCase()] = props[k];
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
|
-
const attribute =
|
|
101
|
+
const attribute = getAttributeNs(attributes, k);
|
|
102
102
|
if (attribute) {
|
|
103
103
|
(0, State_1.useRender)(props[k], v => {
|
|
104
104
|
element.setAttributeNS(attribute.namespace, attribute.name, String(v));
|
|
@@ -112,7 +112,7 @@ class NesquickComponent {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
|
-
const attribute =
|
|
115
|
+
const attribute = getAttributeNs(attributes, k);
|
|
116
116
|
if (attribute) {
|
|
117
117
|
element.setAttributeNS(attribute.namespace, attribute.name, String(props[k]));
|
|
118
118
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tsc_1 = require("./tsc");
|
|
5
|
+
const transformer_1 = require("./transformer");
|
|
6
|
+
(0, tsc_1.tsc)({
|
|
7
|
+
argv: process.argv,
|
|
8
|
+
cwd: process.cwd(),
|
|
9
|
+
transformers: {
|
|
10
|
+
before: [transformer_1.transformer]
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProject = getProject;
|
|
4
|
+
const Path = require("path");
|
|
5
|
+
function getProject(argv) {
|
|
6
|
+
let nextIsProject = false;
|
|
7
|
+
for (let i = 0; i < argv.length; i++) {
|
|
8
|
+
if (argv[i].startsWith("--")) {
|
|
9
|
+
nextIsProject = argv[i].substring(2) === "project";
|
|
10
|
+
}
|
|
11
|
+
else if (argv[i].startsWith("-")) {
|
|
12
|
+
nextIsProject = argv[i].substring(1) === "p";
|
|
13
|
+
}
|
|
14
|
+
else if (nextIsProject) {
|
|
15
|
+
return Path.resolve(process.cwd(), argv[i]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transformer = void 0;
|
|
4
|
+
exports.createCheckFunction = createCheckFunction;
|
|
5
|
+
const TS = require("typescript");
|
|
6
|
+
function getSingleIdentifier(node) {
|
|
7
|
+
let identifier = null;
|
|
8
|
+
node.forEachChild(node => {
|
|
9
|
+
if (TS.isIdentifier(node)) {
|
|
10
|
+
if (identifier != null) {
|
|
11
|
+
return node;
|
|
12
|
+
}
|
|
13
|
+
identifier = node;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
return identifier;
|
|
17
|
+
}
|
|
18
|
+
function getSingleBody(node) {
|
|
19
|
+
let body = null;
|
|
20
|
+
node.forEachChild(node => {
|
|
21
|
+
if (body != null) {
|
|
22
|
+
return node;
|
|
23
|
+
}
|
|
24
|
+
body = node;
|
|
25
|
+
});
|
|
26
|
+
return body;
|
|
27
|
+
}
|
|
28
|
+
function createCheckFunction(fName) {
|
|
29
|
+
return TS.factory.createFunctionDeclaration(void 0, void 0, fName, void 0, [TS.factory.createParameterDeclaration(void 0, void 0, TS.factory.createIdentifier("v"))], void 0, TS.factory.createBlock([
|
|
30
|
+
TS.factory.createReturnStatement(TS.factory.createConditionalExpression(TS.factory.createBinaryExpression(TS.factory.createTypeOfExpression(TS.factory.createIdentifier("v")), TS.factory.createToken(TS.SyntaxKind.EqualsEqualsEqualsToken), TS.factory.createStringLiteral("function")), TS.factory.createToken(TS.SyntaxKind.QuestionToken), TS.factory.createIdentifier("v"), TS.factory.createToken(TS.SyntaxKind.ColonToken), TS.factory.createArrowFunction(void 0, void 0, [], void 0, TS.factory.createToken(TS.SyntaxKind.EqualsGreaterThanToken), TS.factory.createIdentifier("v"))))
|
|
31
|
+
]));
|
|
32
|
+
}
|
|
33
|
+
const transformer = context => {
|
|
34
|
+
return sourceFile => {
|
|
35
|
+
let hasChecker = false;
|
|
36
|
+
const checkerName = TS.factory.createUniqueName("_check");
|
|
37
|
+
const visitGeneric = (node, options) => {
|
|
38
|
+
let hasSpread = options.userComponent && TS.isJsxSpreadAttribute(node);
|
|
39
|
+
let hasCallExpression = TS.isCallExpression(node);
|
|
40
|
+
if (TS.isJsxOpeningLikeElement(node)) {
|
|
41
|
+
const firstLetter = node.tagName.getText()[0];
|
|
42
|
+
const userComponent = firstLetter !== firstLetter.toLowerCase();
|
|
43
|
+
node = TS.visitEachChild(node, node => {
|
|
44
|
+
const res = visitGeneric(node, { userComponent });
|
|
45
|
+
hasSpread = hasSpread || res.hasSpread;
|
|
46
|
+
hasCallExpression = hasCallExpression || res.hasCallExpression;
|
|
47
|
+
return res.node;
|
|
48
|
+
}, context);
|
|
49
|
+
if (userComponent && hasSpread) {
|
|
50
|
+
const symbol = TS.factory.createCallExpression(TS.factory.createPropertyAccessExpression(TS.factory.createIdentifier("Symbol"), "for"), void 0, [TS.factory.createStringLiteral("$nesquickSpreadProps")]);
|
|
51
|
+
if (TS.isJsxOpeningLikeElement(node)) {
|
|
52
|
+
const attributes = TS.factory.updateJsxAttributes(node.attributes, [
|
|
53
|
+
...node.attributes.properties,
|
|
54
|
+
TS.factory.createJsxSpreadAttribute(TS.factory.createObjectLiteralExpression([
|
|
55
|
+
TS.factory.createPropertyAssignment(TS.factory.createComputedPropertyName(symbol), TS.factory.createTrue())
|
|
56
|
+
]))
|
|
57
|
+
]);
|
|
58
|
+
if (TS.isJsxOpeningElement(node)) {
|
|
59
|
+
node = TS.factory.updateJsxOpeningElement(node, node.tagName, node.typeArguments, attributes);
|
|
60
|
+
}
|
|
61
|
+
else if (TS.isJsxSelfClosingElement(node)) {
|
|
62
|
+
node = TS.factory.updateJsxSelfClosingElement(node, node.tagName, node.typeArguments, attributes);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (TS.isJsxAttribute(node)) {
|
|
68
|
+
node = TS.visitEachChild(node, node => {
|
|
69
|
+
const res = visitGeneric(node, { ...options, isJsxAttribute: true });
|
|
70
|
+
hasSpread = hasSpread || res.hasSpread;
|
|
71
|
+
hasCallExpression = hasCallExpression || res.hasCallExpression;
|
|
72
|
+
return res.node;
|
|
73
|
+
}, context);
|
|
74
|
+
}
|
|
75
|
+
else if (TS.isJsxExpression(node)) {
|
|
76
|
+
node = TS.visitEachChild(node, node => visitorExpression(node, { ...options, isJsxAttribute: false }), context);
|
|
77
|
+
}
|
|
78
|
+
else if (options.isJsxAttribute && TS.isStringLiteral(node)) {
|
|
79
|
+
const returnNode = TS.visitNode(node, node => visitorExpression(node, { ...options, isJsxAttribute: false }), TS.isExpression);
|
|
80
|
+
if (TS.isStringLiteral(returnNode)) {
|
|
81
|
+
node = returnNode;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
node = TS.factory.createJsxExpression(void 0, returnNode);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
node = TS.visitEachChild(node, node => {
|
|
89
|
+
const res = visitGeneric(node, { ...options, isJsxAttribute: false });
|
|
90
|
+
hasSpread = hasSpread || res.hasSpread;
|
|
91
|
+
hasCallExpression = hasCallExpression || res.hasCallExpression;
|
|
92
|
+
return res.node;
|
|
93
|
+
}, context);
|
|
94
|
+
}
|
|
95
|
+
return { hasSpread, hasCallExpression, node };
|
|
96
|
+
};
|
|
97
|
+
const visitorExpression = (node, options) => {
|
|
98
|
+
if (TS.isParenthesizedExpression(node)) {
|
|
99
|
+
const body = getSingleBody(node);
|
|
100
|
+
if (body) {
|
|
101
|
+
node = body;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (TS.isCallExpression(node)) {
|
|
105
|
+
let identifier = null;
|
|
106
|
+
if (node.arguments.length === 0 && (identifier = getSingleIdentifier(node)) != null) {
|
|
107
|
+
node = identifier;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
node = TS.factory.createArrowFunction(void 0, void 0, [], void 0, TS.factory.createToken(TS.SyntaxKind.EqualsGreaterThanToken), TS.visitNode(node, node => visitGeneric(node, {}).node, TS.isConciseBody));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
const res = visitGeneric(node, {});
|
|
115
|
+
node = res.node;
|
|
116
|
+
if (TS.isExpression(node) && !TS.isFunctionLike(node) && !TS.isJsxElement(node) && !TS.isJsxOpeningLikeElement(node)) {
|
|
117
|
+
if (res.hasCallExpression) {
|
|
118
|
+
node = TS.factory.createArrowFunction(void 0, void 0, [], void 0, TS.factory.createToken(TS.SyntaxKind.EqualsGreaterThanToken), TS.visitNode(node, node => visitGeneric(node, {}).node, TS.isConciseBody));
|
|
119
|
+
}
|
|
120
|
+
else if (options.userComponent) {
|
|
121
|
+
hasChecker = true;
|
|
122
|
+
node = TS.factory.createCallExpression(checkerName, void 0, [node]);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return node;
|
|
127
|
+
};
|
|
128
|
+
sourceFile = TS.visitNode(sourceFile, node => visitGeneric(node, {}).node, TS.isSourceFile);
|
|
129
|
+
if (hasChecker) {
|
|
130
|
+
sourceFile = TS.factory.updateSourceFile(sourceFile, [
|
|
131
|
+
...sourceFile.statements,
|
|
132
|
+
createCheckFunction(checkerName)
|
|
133
|
+
]);
|
|
134
|
+
}
|
|
135
|
+
return sourceFile;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
exports.transformer = transformer;
|
package/lib/cli/tsc.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tsc = tsc;
|
|
4
|
+
const TS = require("typescript");
|
|
5
|
+
const processArgv_1 = require("./processArgv");
|
|
6
|
+
function tsc(options) {
|
|
7
|
+
const oldDir = process.cwd();
|
|
8
|
+
try {
|
|
9
|
+
if (options.cwd !== oldDir) {
|
|
10
|
+
process.chdir(options.cwd);
|
|
11
|
+
}
|
|
12
|
+
let project = (0, processArgv_1.getProject)(options.argv);
|
|
13
|
+
if (project == null) {
|
|
14
|
+
const configPath = TS.findConfigFile(options.cwd, TS.sys.fileExists, "tsconfig.json");
|
|
15
|
+
if (configPath != null) {
|
|
16
|
+
project = configPath;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (!project) {
|
|
20
|
+
throw new Error("tsconfig.json not found");
|
|
21
|
+
}
|
|
22
|
+
const res = TS.readConfigFile(project, TS.sys.readFile);
|
|
23
|
+
const formatHost = {
|
|
24
|
+
getCanonicalFileName: f => f,
|
|
25
|
+
getCurrentDirectory: TS.sys.getCurrentDirectory,
|
|
26
|
+
getNewLine: () => TS.sys.newLine,
|
|
27
|
+
};
|
|
28
|
+
if (res.error) {
|
|
29
|
+
console.error(TS.formatDiagnosticsWithColorAndContext([res.error], formatHost));
|
|
30
|
+
throw new Error(`Error reading ${project}`);
|
|
31
|
+
}
|
|
32
|
+
else if (res.config == null) {
|
|
33
|
+
throw new Error(`Error reading ${project}`);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const jsonConfig = TS.parseJsonConfigFileContent(res.config, TS.sys, options.cwd, {}, project);
|
|
37
|
+
const program = TS.createProgram({
|
|
38
|
+
options: jsonConfig.options,
|
|
39
|
+
rootNames: jsonConfig.fileNames,
|
|
40
|
+
configFileParsingDiagnostics: jsonConfig.errors
|
|
41
|
+
});
|
|
42
|
+
const preDiagnostics = TS.getPreEmitDiagnostics(program);
|
|
43
|
+
const programEmit = program.emit(void 0, void 0, void 0, void 0, options.transformers);
|
|
44
|
+
const allDiagnostics = [...preDiagnostics, ...programEmit.diagnostics, ...jsonConfig.errors];
|
|
45
|
+
if (allDiagnostics.length) {
|
|
46
|
+
console.error(TS.formatDiagnosticsWithColorAndContext(allDiagnostics, formatHost));
|
|
47
|
+
throw new Error(`Error compiling project`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
finally {
|
|
52
|
+
if (options.cwd !== oldDir) {
|
|
53
|
+
process.chdir(oldDir);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Nesquick"), exports);
|
|
18
18
|
__exportStar(require("./For/For"), exports);
|
|
19
|
+
__exportStar(require("./cli/transformer"), exports);
|
|
19
20
|
__exportStar(require("./State"), exports);
|
|
20
21
|
__exportStar(require("./NesquickFragment"), exports);
|
|
21
22
|
__exportStar(require("./NesquickComponent"), exports);
|
|
23
|
+
__exportStar(require("./jsx-runtime"), exports);
|
|
24
|
+
__exportStar(require("./plugins/viteTransformerPlugin"), exports);
|
package/lib/jsx-runtime.js
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.jsx = void 0;
|
|
4
|
-
exports.functionizeProps = functionizeProps;
|
|
3
|
+
exports.JSX = exports.jsx = exports.Fragment = void 0;
|
|
5
4
|
exports.jsxs = jsxs;
|
|
6
5
|
const NesquickComponent_1 = require("./NesquickComponent");
|
|
7
6
|
const NesquickFragment_1 = require("./NesquickFragment");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
for (const k in props) {
|
|
11
|
-
if (typeof props[k] !== "function") {
|
|
12
|
-
const v = props[k];
|
|
13
|
-
props[k] = () => v;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
7
|
+
const propsSpreadSymbol = Symbol.for("$nesquickSpreadProps");
|
|
8
|
+
exports.Fragment = Symbol();
|
|
17
9
|
function jsxs(type, props, key) {
|
|
18
|
-
if (type === Fragment) {
|
|
10
|
+
if (type === exports.Fragment) {
|
|
19
11
|
return new NesquickFragment_1.NesquickFragment(props.children);
|
|
20
12
|
}
|
|
21
|
-
if (
|
|
22
|
-
functionizeProps(props);
|
|
23
|
-
}
|
|
24
|
-
else if (key !== undefined) {
|
|
13
|
+
if (key !== undefined) {
|
|
25
14
|
props.key = key;
|
|
26
15
|
}
|
|
27
16
|
return new NesquickComponent_1.NesquickComponent(type, props);
|
|
28
17
|
}
|
|
29
18
|
exports.jsx = jsxs;
|
|
19
|
+
var JSX;
|
|
20
|
+
(function (JSX) {
|
|
21
|
+
})(JSX || (exports.JSX = JSX = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.jsxDEV = jsxDEV;
|
|
18
|
+
const jsx_runtime_1 = require("./jsx-runtime");
|
|
19
|
+
__exportStar(require("./jsx-runtime"), exports);
|
|
20
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(type, props, key);
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JSX = exports.jsx = exports.Fragment = void 0;
|
|
4
|
+
exports.functionizeProps = functionizeProps;
|
|
5
|
+
exports.jsxs = jsxs;
|
|
6
|
+
const NesquickComponent_1 = require("../NesquickComponent");
|
|
7
|
+
const NesquickFragment_1 = require("../NesquickFragment");
|
|
8
|
+
exports.Fragment = Symbol();
|
|
9
|
+
function functionizeProps(props) {
|
|
10
|
+
for (const k in props) {
|
|
11
|
+
if (k !== "children" && typeof props[k] !== "function") {
|
|
12
|
+
const v = props[k];
|
|
13
|
+
props[k] = () => v;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function jsxs(type, props, key) {
|
|
18
|
+
if (type === exports.Fragment) {
|
|
19
|
+
return new NesquickFragment_1.NesquickFragment(props.children);
|
|
20
|
+
}
|
|
21
|
+
if (typeof type !== "string") {
|
|
22
|
+
functionizeProps(props);
|
|
23
|
+
}
|
|
24
|
+
else if (key !== undefined) {
|
|
25
|
+
props.key = key;
|
|
26
|
+
}
|
|
27
|
+
return new NesquickComponent_1.NesquickComponent(type, props);
|
|
28
|
+
}
|
|
29
|
+
exports.jsx = jsxs;
|
|
30
|
+
var JSX;
|
|
31
|
+
(function (JSX) {
|
|
32
|
+
})(JSX || (exports.JSX = JSX = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.viteTransformerPlugin = void 0;
|
|
4
|
+
const TS = require("typescript");
|
|
5
|
+
const transformer_1 = require("../cli/transformer");
|
|
6
|
+
exports.viteTransformerPlugin = {
|
|
7
|
+
name: "nesquick-transformer",
|
|
8
|
+
enforce: "pre",
|
|
9
|
+
transform(code, id) {
|
|
10
|
+
if (id.endsWith(".ts") || id.endsWith(".tsx")) {
|
|
11
|
+
const result = TS.transpileModule(code, {
|
|
12
|
+
compilerOptions: {
|
|
13
|
+
target: TS.ScriptTarget.ESNext,
|
|
14
|
+
module: TS.ModuleKind.ESNext,
|
|
15
|
+
jsx: TS.JsxEmit.Preserve,
|
|
16
|
+
},
|
|
17
|
+
transformers: {
|
|
18
|
+
before: [transformer_1.transformer],
|
|
19
|
+
},
|
|
20
|
+
fileName: id
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
code: result.outputText,
|
|
24
|
+
map: result.sourceMapText ? JSON.parse(result.sourceMapText) : null
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
package/lib/types/Nesquick.d.ts
CHANGED
|
@@ -4,67 +4,4 @@ export declare namespace Nesquick {
|
|
|
4
4
|
}
|
|
5
5
|
export { Children, Child };
|
|
6
6
|
export default Nesquick;
|
|
7
|
-
|
|
8
|
-
[L in K]-?: T[K] | undefined;
|
|
9
|
-
} extends {
|
|
10
|
-
[L in K]?: T[K];
|
|
11
|
-
} ? undefined extends T[K] ? true : false : false;
|
|
12
|
-
declare const WrappedFunctionType: unique symbol;
|
|
13
|
-
type WrappedFunction<T> = (() => T) & {
|
|
14
|
-
readonly [WrappedFunctionType]?: T;
|
|
15
|
-
};
|
|
16
|
-
type UserProp<T> = T extends (...args: any[]) => any ? T : WrappedFunction<T>;
|
|
17
|
-
type UserProps<T> = {
|
|
18
|
-
readonly [K in keyof T]: K extends keyof JSX.ElementChildrenAttribute ? T[K] : HasUndefined<T, K> extends true ? UserProp<T[K] | undefined> : UserProp<Exclude<T[K], undefined>>;
|
|
19
|
-
};
|
|
20
|
-
type JSXProp<T> = T extends {
|
|
21
|
-
readonly [WrappedFunctionType]?: infer R;
|
|
22
|
-
} ? R : T;
|
|
23
|
-
type JSXProps<T> = keyof T extends never ? {} : {
|
|
24
|
-
[K in keyof T]: JSXProp<T[K]>;
|
|
25
|
-
};
|
|
26
|
-
export type Generic<T> = T extends (...args: any) => infer R ? R : T;
|
|
27
|
-
export { UserProps as Props };
|
|
28
|
-
export type Component<P = {}> = (props: UserProps<P>) => JSX.Element;
|
|
29
|
-
export declare namespace JSX {
|
|
30
|
-
export type JSXEvent<T extends Event, T2 extends EventTarget> = T & {
|
|
31
|
-
currentTarget: T2;
|
|
32
|
-
};
|
|
33
|
-
export type JSXHTMLEvent<T extends EventTarget> = {
|
|
34
|
-
[K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (e: JSXEvent<HTMLElementEventMap[K], T>) => void;
|
|
35
|
-
};
|
|
36
|
-
export type JSXSVGEvent<T extends EventTarget> = {
|
|
37
|
-
[K in keyof SVGElementEventMap as `on${Capitalize<K>}`]?: (e: JSXEvent<SVGElementEventMap[K], T>) => void;
|
|
38
|
-
};
|
|
39
|
-
export interface Props<T extends EventTarget = HTMLElement> extends JSXHTMLEvent<T>, JSXSVGEvent<T> {
|
|
40
|
-
[k: string]: any;
|
|
41
|
-
style?: Style;
|
|
42
|
-
xmlns?: string | null;
|
|
43
|
-
ref?: ((el: T) => void) | null;
|
|
44
|
-
}
|
|
45
|
-
export type Style = StyleProps | string;
|
|
46
|
-
export type StyleProps = {
|
|
47
|
-
[K in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[K] extends Function ? never : CSSStyleDeclaration[K] | (() => CSSStyleDeclaration[K]);
|
|
48
|
-
};
|
|
49
|
-
export type HTMLProps<T extends HTMLElement = HTMLElement> = Props<T>;
|
|
50
|
-
export type SVGProps<T extends SVGElement = SVGElement> = Props<T>;
|
|
51
|
-
export type IntrinsicElements = {
|
|
52
|
-
[K in keyof HTMLElementTagNameMap]: HTMLProps<HTMLElementTagNameMap[K]>;
|
|
53
|
-
} & {
|
|
54
|
-
[K in keyof SVGElementTagNameMap]: SVGProps<SVGElementTagNameMap[K]>;
|
|
55
|
-
};
|
|
56
|
-
export type Element = NesquickComponent<any>;
|
|
57
|
-
export type ElementType = keyof IntrinsicElements | Component<any> | typeof NesquickComponent<any>;
|
|
58
|
-
const NotEmptyObject: unique symbol;
|
|
59
|
-
export type IntrinsicAttributes = {
|
|
60
|
-
[NotEmptyObject]?: typeof NotEmptyObject;
|
|
61
|
-
};
|
|
62
|
-
export interface ElementAttributesProperty {
|
|
63
|
-
props: {};
|
|
64
|
-
}
|
|
65
|
-
export interface ElementChildrenAttribute {
|
|
66
|
-
children: {};
|
|
67
|
-
}
|
|
68
|
-
export type LibraryManagedAttributes<_, P> = JSXProps<P>;
|
|
69
|
-
export {};
|
|
70
|
-
}
|
|
7
|
+
export * from "./jsx-runtime";
|
|
@@ -32,7 +32,6 @@ export declare class NesquickComponent<P extends ComponentProps = {}> {
|
|
|
32
32
|
constructor(_render: string | FunctionComponent<P>, props: P);
|
|
33
33
|
render(document: VeactDocument): Node;
|
|
34
34
|
setXmlns(xmlns: XmlNs | null): void;
|
|
35
|
-
private _getAttributeNs;
|
|
36
35
|
private _renderPropsNs;
|
|
37
36
|
private _renderProps;
|
|
38
37
|
private _renderStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getProject(argv: string[]): string | null;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./Nesquick";
|
|
2
2
|
export * from "./For/For";
|
|
3
|
+
export * from "./cli/transformer";
|
|
3
4
|
export * from "./State";
|
|
4
5
|
export * from "./NesquickFragment";
|
|
5
6
|
export * from "./NesquickComponent";
|
|
7
|
+
export * from "./jsx-runtime";
|
|
8
|
+
export * from "./plugins/viteTransformerPlugin";
|
|
@@ -1,7 +1,72 @@
|
|
|
1
1
|
import { FunctionComponent, ComponentProps, NesquickComponent } from "./NesquickComponent";
|
|
2
2
|
import { NesquickFragment } from "./NesquickFragment";
|
|
3
|
-
declare const
|
|
4
|
-
export declare
|
|
5
|
-
export declare function jsxs<P extends ComponentProps
|
|
3
|
+
declare const propsSpreadSymbol: unique symbol;
|
|
4
|
+
export declare const Fragment: unique symbol;
|
|
5
|
+
export declare function jsxs<P extends ComponentProps & {
|
|
6
|
+
[propsSpreadSymbol]?: true;
|
|
7
|
+
}>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key?: string | number | null): NesquickFragment | NesquickComponent<P>;
|
|
6
8
|
export declare const jsx: typeof jsxs;
|
|
7
|
-
|
|
9
|
+
type HasUndefined<T, K extends keyof T> = {
|
|
10
|
+
[L in K]-?: T[K] | undefined;
|
|
11
|
+
} extends {
|
|
12
|
+
[L in K]?: T[K];
|
|
13
|
+
} ? undefined extends T[K] ? true : false : false;
|
|
14
|
+
declare const WrappedFunctionType: unique symbol;
|
|
15
|
+
type WrappedFunction<T> = (() => T) & {
|
|
16
|
+
readonly [WrappedFunctionType]?: T;
|
|
17
|
+
};
|
|
18
|
+
type UserProp<T> = T extends (...args: any[]) => any ? T : WrappedFunction<T>;
|
|
19
|
+
type UserProps<T> = {
|
|
20
|
+
readonly [K in keyof T]: K extends keyof JSX.ElementChildrenAttribute ? T[K] : HasUndefined<T, K> extends true ? UserProp<T[K] | undefined> : UserProp<Exclude<T[K], undefined>>;
|
|
21
|
+
};
|
|
22
|
+
type JSXProp<T> = T extends {
|
|
23
|
+
readonly [WrappedFunctionType]?: infer R;
|
|
24
|
+
} ? R : T;
|
|
25
|
+
type JSXProps<T> = keyof T extends never ? {} : {
|
|
26
|
+
[K in keyof T]: JSXProp<T[K]>;
|
|
27
|
+
};
|
|
28
|
+
export type Generic<T> = T extends (...args: any) => infer R ? R : T;
|
|
29
|
+
export { UserProps as Props };
|
|
30
|
+
export type Component<P = {}> = (props: UserProps<P>) => JSX.Element;
|
|
31
|
+
export declare namespace JSX {
|
|
32
|
+
export type JSXEvent<T extends Event, T2 extends EventTarget> = T & {
|
|
33
|
+
currentTarget: T2;
|
|
34
|
+
};
|
|
35
|
+
export type JSXHTMLEvent<T extends EventTarget> = {
|
|
36
|
+
[K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (e: JSXEvent<HTMLElementEventMap[K], T>) => void;
|
|
37
|
+
};
|
|
38
|
+
export type JSXSVGEvent<T extends EventTarget> = {
|
|
39
|
+
[K in keyof SVGElementEventMap as `on${Capitalize<K>}`]?: (e: JSXEvent<SVGElementEventMap[K], T>) => void;
|
|
40
|
+
};
|
|
41
|
+
export interface Props<T extends EventTarget = HTMLElement> extends JSXHTMLEvent<T>, JSXSVGEvent<T> {
|
|
42
|
+
[k: string]: any;
|
|
43
|
+
style?: Style;
|
|
44
|
+
xmlns?: string | null;
|
|
45
|
+
ref?: ((el: T) => void) | null;
|
|
46
|
+
}
|
|
47
|
+
export type Style = StyleProps | string;
|
|
48
|
+
export type StyleProps = {
|
|
49
|
+
[K in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[K] extends Function ? never : CSSStyleDeclaration[K] | (() => CSSStyleDeclaration[K]);
|
|
50
|
+
};
|
|
51
|
+
export type HTMLProps<T extends HTMLElement = HTMLElement> = Props<T>;
|
|
52
|
+
export type SVGProps<T extends SVGElement = SVGElement> = Props<T>;
|
|
53
|
+
export type IntrinsicElements = {
|
|
54
|
+
[K in keyof HTMLElementTagNameMap]: HTMLProps<HTMLElementTagNameMap[K]>;
|
|
55
|
+
} & {
|
|
56
|
+
[K in keyof SVGElementTagNameMap]: SVGProps<SVGElementTagNameMap[K]>;
|
|
57
|
+
};
|
|
58
|
+
export type Element = NesquickComponent<any>;
|
|
59
|
+
export type ElementType = keyof IntrinsicElements | Component<any> | typeof NesquickComponent<any>;
|
|
60
|
+
const NotEmptyObject: unique symbol;
|
|
61
|
+
export type IntrinsicAttributes = {
|
|
62
|
+
[NotEmptyObject]?: typeof NotEmptyObject;
|
|
63
|
+
};
|
|
64
|
+
export interface ElementAttributesProperty {
|
|
65
|
+
props: {};
|
|
66
|
+
}
|
|
67
|
+
export interface ElementChildrenAttribute {
|
|
68
|
+
children: {};
|
|
69
|
+
}
|
|
70
|
+
export type LibraryManagedAttributes<_, P> = JSXProps<P>;
|
|
71
|
+
export {};
|
|
72
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Fragment } from "./jsx-runtime";
|
|
2
|
+
import { FunctionComponent, ComponentProps } from "../NesquickComponent";
|
|
3
|
+
export * from "./jsx-runtime";
|
|
4
|
+
type JsxSource = {
|
|
5
|
+
fileName: string;
|
|
6
|
+
lineNumber: number;
|
|
7
|
+
columnNumber?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function jsxDEV<P extends ComponentProps>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key: string | number | null, _isStaticChildren: boolean, _source: JsxSource, _self: any): import("..").NesquickFragment | import("../NesquickComponent").NesquickComponent<P>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FunctionComponent, ComponentProps, NesquickComponent } from "../NesquickComponent";
|
|
2
|
+
import { NesquickFragment } from "../NesquickFragment";
|
|
3
|
+
export declare const Fragment: unique symbol;
|
|
4
|
+
export declare function functionizeProps(props: ComponentProps): void;
|
|
5
|
+
export declare function jsxs<P extends ComponentProps>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key?: string | number | null): NesquickFragment | NesquickComponent<P>;
|
|
6
|
+
export declare const jsx: typeof jsxs;
|
|
7
|
+
type HasUndefined<T, K extends keyof T> = {
|
|
8
|
+
[L in K]-?: T[K] | undefined;
|
|
9
|
+
} extends {
|
|
10
|
+
[L in K]?: T[K];
|
|
11
|
+
} ? undefined extends T[K] ? true : false : false;
|
|
12
|
+
declare const WrappedFunctionType: unique symbol;
|
|
13
|
+
type WrappedFunction<T> = (() => T) & {
|
|
14
|
+
readonly [WrappedFunctionType]?: T;
|
|
15
|
+
};
|
|
16
|
+
type UserProp<T> = T extends (...args: infer A) => infer R ? (((...args: A) => R) | T) : WrappedFunction<T>;
|
|
17
|
+
type UserProps<T> = {
|
|
18
|
+
readonly [K in keyof T]: K extends keyof JSX.ElementChildrenAttribute ? T[K] : HasUndefined<T, K> extends true ? UserProp<T[K] | undefined> : UserProp<Exclude<T[K], undefined>>;
|
|
19
|
+
};
|
|
20
|
+
type JSXProp<T> = T extends {
|
|
21
|
+
readonly [WrappedFunctionType]?: infer R;
|
|
22
|
+
} ? (T | R) : T extends (...args: any[]) => any ? T : (T | (() => T));
|
|
23
|
+
type JSXProps<T> = keyof T extends never ? {} : {
|
|
24
|
+
[K in keyof T]: JSXProp<T[K]>;
|
|
25
|
+
};
|
|
26
|
+
export type Generic<T> = T extends (...args: any) => infer R ? R : T;
|
|
27
|
+
export { UserProps as Props };
|
|
28
|
+
export type Component<P = {}> = (props: UserProps<P>) => JSX.Element;
|
|
29
|
+
export declare namespace JSX {
|
|
30
|
+
export type JSXEvent<T extends Event, T2 extends EventTarget> = T & {
|
|
31
|
+
currentTarget: T2;
|
|
32
|
+
};
|
|
33
|
+
export type JSXHTMLEvent<T extends EventTarget> = {
|
|
34
|
+
[K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (e: JSXEvent<HTMLElementEventMap[K], T>) => void;
|
|
35
|
+
};
|
|
36
|
+
export type JSXSVGEvent<T extends EventTarget> = {
|
|
37
|
+
[K in keyof SVGElementEventMap as `on${Capitalize<K>}`]?: (e: JSXEvent<SVGElementEventMap[K], T>) => void;
|
|
38
|
+
};
|
|
39
|
+
export interface Props<T extends EventTarget = HTMLElement> extends JSXHTMLEvent<T>, JSXSVGEvent<T> {
|
|
40
|
+
[k: string]: any;
|
|
41
|
+
style?: Style;
|
|
42
|
+
xmlns?: string | null;
|
|
43
|
+
ref?: ((el: T) => void) | null;
|
|
44
|
+
}
|
|
45
|
+
export type Style = StyleProps | string;
|
|
46
|
+
export type StyleProps = {
|
|
47
|
+
[K in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[K] extends Function ? never : CSSStyleDeclaration[K] | (() => CSSStyleDeclaration[K]);
|
|
48
|
+
};
|
|
49
|
+
export type HTMLProps<T extends HTMLElement = HTMLElement> = Props<T>;
|
|
50
|
+
export type SVGProps<T extends SVGElement = SVGElement> = Props<T>;
|
|
51
|
+
export type JSXElements = {
|
|
52
|
+
[K in keyof HTMLElementTagNameMap]: HTMLProps<HTMLElementTagNameMap[K]>;
|
|
53
|
+
} & {
|
|
54
|
+
[K in keyof SVGElementTagNameMap]: SVGProps<SVGElementTagNameMap[K]>;
|
|
55
|
+
};
|
|
56
|
+
export type Element = NesquickComponent<any>;
|
|
57
|
+
export interface IntrinsicElements extends JSXElements {
|
|
58
|
+
}
|
|
59
|
+
export type ElementType = keyof IntrinsicElements | Component<any> | typeof NesquickComponent<any>;
|
|
60
|
+
const NotEmptyObject: unique symbol;
|
|
61
|
+
export type IntrinsicAttributes = {
|
|
62
|
+
[NotEmptyObject]?: typeof NotEmptyObject;
|
|
63
|
+
};
|
|
64
|
+
export interface ElementAttributesProperty {
|
|
65
|
+
props: {};
|
|
66
|
+
}
|
|
67
|
+
export interface ElementChildrenAttribute {
|
|
68
|
+
children: {};
|
|
69
|
+
}
|
|
70
|
+
export type LibraryManagedAttributes<_, P> = JSXProps<P>;
|
|
71
|
+
export {};
|
|
72
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nesquick",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "React-like library with focus on drawing performance",
|
|
5
|
-
"types": "./lib/types",
|
|
6
|
-
"main": "./lib",
|
|
5
|
+
"types": "./lib/types/index.d.ts",
|
|
6
|
+
"main": "./lib/index.js",
|
|
7
7
|
"typesVersions": {
|
|
8
8
|
"*": {
|
|
9
|
+
".": ["./lib/types/index.d.ts"],
|
|
9
10
|
"jsx-runtime": ["./lib/types/jsx-runtime.d.ts"],
|
|
10
|
-
"jsx-dev-runtime": ["./lib/types/jsx-dev-runtime.d.ts"]
|
|
11
|
+
"jsx-dev-runtime": ["./lib/types/jsx-dev-runtime.d.ts"],
|
|
12
|
+
"no-transformer/jsx-runtime": ["./lib/types/jsx-runtime.d.ts"],
|
|
13
|
+
"no-transformer/jsx-dev-runtime": ["./lib/types/jsx-dev-runtime.d.ts"]
|
|
11
14
|
}
|
|
12
15
|
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/types/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./jsx-runtime": {
|
|
22
|
+
"types": "./lib/types/jsx-runtime.d.ts",
|
|
23
|
+
"default": "./lib/jsx-runtime.js"
|
|
24
|
+
},
|
|
25
|
+
"./jsx-dev-runtime": {
|
|
26
|
+
"types": "./lib/types/jsx-dev-runtime.d.ts",
|
|
27
|
+
"default": "./lib/jsx-dev-runtime.js"
|
|
28
|
+
},
|
|
29
|
+
"./no-transformer/jsx-runtime": {
|
|
30
|
+
"types": "./lib/types/no-transformer/jsx-runtime.d.ts",
|
|
31
|
+
"default": "./lib/no-transformer/jsx-runtime.js"
|
|
32
|
+
},
|
|
33
|
+
"./no-transformer/jsx-dev-runtime": {
|
|
34
|
+
"types": "./lib/types/no-transformer/jsx-dev-runtime.d.ts",
|
|
35
|
+
"default": "./lib/no-transformer/jsx-dev-runtime.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"bin": {
|
|
39
|
+
"nesquick-tsc": "lib/cli/nesquick-tsc.js",
|
|
40
|
+
"ntsc": "lib/cli/nesquick-tsc.js"
|
|
41
|
+
},
|
|
13
42
|
"sideEffects": false,
|
|
14
43
|
"files": [
|
|
15
44
|
"lib/",
|