apigen-ts 1.0.0 → 1.0.1
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.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{main-BTcttgNf.js → main-CRZklgfk.js} +1 -1
- package/dist/{main-BTcttgNf.mjs → main-CRZklgfk.mjs} +1 -1
- package/dist/{main-oWgfChRG.cjs → main-Cic4LkJH.cjs} +2 -2
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/main.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
package/dist/cli.js
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -13,7 +13,7 @@ var path = require('node:path');
|
|
|
13
13
|
|
|
14
14
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
15
15
|
var name = "apigen-ts";
|
|
16
|
-
var version = "1.0.
|
|
16
|
+
var version = "1.0.1";
|
|
17
17
|
|
|
18
18
|
const initCtx = (config) => {
|
|
19
19
|
return {
|
|
@@ -515,7 +515,7 @@ const apigen = async (config) => {
|
|
|
515
515
|
const doc = await loadSchema(config.source);
|
|
516
516
|
const ctx = initCtx({ ...config, doc });
|
|
517
517
|
const { modules, types } = await generateAst(ctx);
|
|
518
|
-
const filepath = path$1.join(path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('main-
|
|
518
|
+
const filepath = path$1.join(path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('main-Cic4LkJH.cjs', document.baseURI).href)))), "_template.ts");
|
|
519
519
|
const file = await fs.readFile(filepath, "utf-8");
|
|
520
520
|
let code = [
|
|
521
521
|
`// Auto-generated by https://github.com/vladkens/apigen-ts`,
|
package/dist/main.cjs
CHANGED
package/dist/main.js
CHANGED
package/dist/main.mjs
CHANGED