@kithinji/pod 1.0.40 → 1.0.42
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/cli.js +6780 -0
- package/dist/cli.js.map +7 -0
- package/dist/index.js +63 -38
- package/dist/index.js.map +2 -2
- package/dist/types/cli.d.ts +3 -0
- package/dist/types/cli.d.ts.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugins/transformers/j2d.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __export = (target, all) => {
|
|
4
3
|
for (var name in all)
|
|
@@ -1724,6 +1723,67 @@ var JSXUtilities = class {
|
|
|
1724
1723
|
isComponentTag(tag) {
|
|
1725
1724
|
return tag ? /^[A-Z]/.test(tag) : false;
|
|
1726
1725
|
}
|
|
1726
|
+
isSVGTag(tag) {
|
|
1727
|
+
const svgTags = /* @__PURE__ */ new Set([
|
|
1728
|
+
"svg",
|
|
1729
|
+
"circle",
|
|
1730
|
+
"rect",
|
|
1731
|
+
"line",
|
|
1732
|
+
"path",
|
|
1733
|
+
"polygon",
|
|
1734
|
+
"polyline",
|
|
1735
|
+
"ellipse",
|
|
1736
|
+
"text",
|
|
1737
|
+
"tspan",
|
|
1738
|
+
"g",
|
|
1739
|
+
"defs",
|
|
1740
|
+
"use",
|
|
1741
|
+
"symbol",
|
|
1742
|
+
"marker",
|
|
1743
|
+
"clipPath",
|
|
1744
|
+
"mask",
|
|
1745
|
+
"pattern",
|
|
1746
|
+
"linearGradient",
|
|
1747
|
+
"radialGradient",
|
|
1748
|
+
"stop",
|
|
1749
|
+
"animate",
|
|
1750
|
+
"animateTransform",
|
|
1751
|
+
"foreignObject",
|
|
1752
|
+
"image",
|
|
1753
|
+
"textPath",
|
|
1754
|
+
"feBlend",
|
|
1755
|
+
"feColorMatrix",
|
|
1756
|
+
"feComponentTransfer",
|
|
1757
|
+
"feComposite",
|
|
1758
|
+
"feConvolveMatrix",
|
|
1759
|
+
"feDiffuseLighting",
|
|
1760
|
+
"feDisplacementMap",
|
|
1761
|
+
"feDistantLight",
|
|
1762
|
+
"feFlood",
|
|
1763
|
+
"feFuncA",
|
|
1764
|
+
"feFuncB",
|
|
1765
|
+
"feFuncG",
|
|
1766
|
+
"feFuncR",
|
|
1767
|
+
"feGaussianBlur",
|
|
1768
|
+
"feImage",
|
|
1769
|
+
"feMerge",
|
|
1770
|
+
"feMergeNode",
|
|
1771
|
+
"feMorphology",
|
|
1772
|
+
"feOffset",
|
|
1773
|
+
"fePointLight",
|
|
1774
|
+
"feSpecularLighting",
|
|
1775
|
+
"feSpotLight",
|
|
1776
|
+
"feTile",
|
|
1777
|
+
"feTurbulence",
|
|
1778
|
+
"filter",
|
|
1779
|
+
"metadata",
|
|
1780
|
+
"title",
|
|
1781
|
+
"desc",
|
|
1782
|
+
"switch",
|
|
1783
|
+
"view"
|
|
1784
|
+
]);
|
|
1785
|
+
return svgTags.has(tag);
|
|
1786
|
+
}
|
|
1727
1787
|
};
|
|
1728
1788
|
var ObservableManager = class {
|
|
1729
1789
|
constructor(t, guards) {
|
|
@@ -1871,7 +1931,7 @@ var ElementTransformer = class {
|
|
|
1871
1931
|
transformDOMElement(jsxElement, tag, scope, context2) {
|
|
1872
1932
|
const elId = scope.generateUidIdentifier("el");
|
|
1873
1933
|
const statements = [];
|
|
1874
|
-
const isSVGTag = this.isSVGTag(tag);
|
|
1934
|
+
const isSVGTag = this.jsxUtils.isSVGTag(tag);
|
|
1875
1935
|
statements.push(
|
|
1876
1936
|
this.t.variableDeclaration("var", [
|
|
1877
1937
|
this.t.variableDeclarator(
|
|
@@ -1941,36 +2001,6 @@ var ElementTransformer = class {
|
|
|
1941
2001
|
}
|
|
1942
2002
|
return { id: elId, statements };
|
|
1943
2003
|
}
|
|
1944
|
-
isSVGTag(tag) {
|
|
1945
|
-
const svgTags = /* @__PURE__ */ new Set([
|
|
1946
|
-
"svg",
|
|
1947
|
-
"circle",
|
|
1948
|
-
"rect",
|
|
1949
|
-
"line",
|
|
1950
|
-
"path",
|
|
1951
|
-
"polygon",
|
|
1952
|
-
"polyline",
|
|
1953
|
-
"ellipse",
|
|
1954
|
-
"text",
|
|
1955
|
-
"tspan",
|
|
1956
|
-
"g",
|
|
1957
|
-
"defs",
|
|
1958
|
-
"use",
|
|
1959
|
-
"symbol",
|
|
1960
|
-
"marker",
|
|
1961
|
-
"clipPath",
|
|
1962
|
-
"mask",
|
|
1963
|
-
"pattern",
|
|
1964
|
-
"linearGradient",
|
|
1965
|
-
"radialGradient",
|
|
1966
|
-
"stop",
|
|
1967
|
-
"animate",
|
|
1968
|
-
"animateTransform",
|
|
1969
|
-
"foreignObject",
|
|
1970
|
-
"image"
|
|
1971
|
-
]);
|
|
1972
|
-
return svgTags.has(tag);
|
|
1973
|
-
}
|
|
1974
2004
|
transformFragment(path17, scope, context2) {
|
|
1975
2005
|
const fragId = scope.generateUidIdentifier("frag");
|
|
1976
2006
|
const statements = [];
|
|
@@ -6738,9 +6768,8 @@ async function compileFiles(entryPoints) {
|
|
|
6738
6768
|
}
|
|
6739
6769
|
|
|
6740
6770
|
// src/index.ts
|
|
6741
|
-
import { fileURLToPath } from "url";
|
|
6742
6771
|
var program = new Command();
|
|
6743
|
-
program.name("pod").description("Pod cli tool").version("1.0.
|
|
6772
|
+
program.name("pod").description("Pod cli tool").version("1.0.42");
|
|
6744
6773
|
program.command("new <name> [type]").description("Start a new Orca Project").action(async (name, type) => {
|
|
6745
6774
|
const orca = async () => {
|
|
6746
6775
|
await addNew(name);
|
|
@@ -6807,10 +6836,6 @@ program.command("deploy").description("Deploy to a target environment").argument
|
|
|
6807
6836
|
process.exit(1);
|
|
6808
6837
|
}
|
|
6809
6838
|
});
|
|
6810
|
-
var isMainModule = process.argv[1] === fileURLToPath(import.meta.url);
|
|
6811
|
-
if (isMainModule) {
|
|
6812
|
-
program.parse(process.argv);
|
|
6813
|
-
}
|
|
6814
6839
|
export {
|
|
6815
6840
|
config_exports as config,
|
|
6816
6841
|
expandMacros,
|