pupt-lib 1.3.3 → 1.3.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.
package/dist/index.js
CHANGED
|
@@ -42970,21 +42970,19 @@ function isBareSpecifier(specifier) {
|
|
|
42970
42970
|
return true;
|
|
42971
42971
|
}
|
|
42972
42972
|
async function resolveBareSpecifier(specifier) {
|
|
42973
|
-
|
|
42974
|
-
const { pathToFileURL } = await import("url");
|
|
42975
|
-
if (specifier === "pupt-lib" || specifier === "pupt-lib/jsx-runtime") {
|
|
42973
|
+
if (typeof import.meta.resolve === "function") {
|
|
42976
42974
|
try {
|
|
42977
|
-
|
|
42978
|
-
|
|
42979
|
-
|
|
42980
|
-
|
|
42981
|
-
const distPath = path.join(process.cwd(), "dist", subpath);
|
|
42982
|
-
return pathToFileURL(distPath).href;
|
|
42975
|
+
return import.meta.resolve(specifier);
|
|
42976
|
+
} catch (error) {
|
|
42977
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
42978
|
+
throw new Error(`Cannot resolve module "${specifier}": ${message}`);
|
|
42983
42979
|
}
|
|
42984
42980
|
}
|
|
42981
|
+
const { pathToFileURL } = await import("url");
|
|
42982
|
+
const { createRequire } = await import("module");
|
|
42983
|
+
const esmRequire = createRequire(import.meta.url);
|
|
42985
42984
|
try {
|
|
42986
|
-
|
|
42987
|
-
return pathToFileURL(resolved).href;
|
|
42985
|
+
return pathToFileURL(esmRequire.resolve(specifier)).href;
|
|
42988
42986
|
} catch (error) {
|
|
42989
42987
|
const message = error instanceof Error ? error.message : String(error);
|
|
42990
42988
|
throw new Error(`Cannot resolve module "${specifier}": ${message}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-evaluator.d.ts","sourceRoot":"","sources":["../../../src/services/module-evaluator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"module-evaluator.d.ts","sourceRoot":"","sources":["../../../src/services/module-evaluator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;AA+LD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC,CAexD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pupt-lib",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "TypeScript library for creating AI prompts using JSX syntax",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "",
|
|
@@ -37,15 +37,18 @@
|
|
|
37
37
|
"exports": {
|
|
38
38
|
".": {
|
|
39
39
|
"types": "./dist/src/index.d.ts",
|
|
40
|
-
"import": "./dist/index.js"
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"default": "./dist/index.js"
|
|
41
42
|
},
|
|
42
43
|
"./jsx-runtime": {
|
|
43
44
|
"types": "./dist/src/jsx-runtime/index.d.ts",
|
|
44
|
-
"import": "./dist/jsx-runtime/index.js"
|
|
45
|
+
"import": "./dist/jsx-runtime/index.js",
|
|
46
|
+
"default": "./dist/jsx-runtime/index.js"
|
|
45
47
|
},
|
|
46
48
|
"./jsx-dev-runtime": {
|
|
47
49
|
"types": "./dist/src/jsx-runtime/jsx-dev-runtime.d.ts",
|
|
48
|
-
"import": "./dist/jsx-runtime/jsx-dev-runtime.js"
|
|
50
|
+
"import": "./dist/jsx-runtime/jsx-dev-runtime.js",
|
|
51
|
+
"default": "./dist/jsx-runtime/jsx-dev-runtime.js"
|
|
49
52
|
}
|
|
50
53
|
},
|
|
51
54
|
"scripts": {
|