oazapfts 7.4.0 → 7.4.2
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/{index-DOhxV2DJ.js → index-DSUZQa3z.js} +191 -221
- package/dist/index-DSUZQa3z.js.map +1 -0
- package/dist/index-f0ywX7Dz.cjs +9 -0
- package/dist/index-f0ywX7Dz.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -4
- package/dist/index-ClBTKGtv.cjs +0 -9
- package/dist/index-ClBTKGtv.cjs.map +0 -1
- package/dist/index-DOhxV2DJ.js.map +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var y=(t,l,o)=>new Promise((a,u)=>{var i=e=>{try{s(o.next(e))}catch(r){u(r)}},c=e=>{try{s(o.throw(e))}catch(r){u(r)}},s=e=>e.done?a(e.value):Promise.resolve(e.value).then(i,c);s((o=o.apply(t,l)).next())});const g=require("fs/promises"),w=require("minimist"),b=require("path"),n=require("./index-
|
|
2
|
+
"use strict";var y=(t,l,o)=>new Promise((a,u)=>{var i=e=>{try{s(o.next(e))}catch(r){u(r)}},c=e=>{try{s(o.throw(e))}catch(r){u(r)}},s=e=>e.done?a(e.value):Promise.resolve(e.value).then(i,c);s((o=o.apply(t,l)).next())});const g=require("fs/promises"),w=require("minimist"),b=require("path"),n=require("./index-f0ywX7Dz.cjs");function j(t){return y(this,null,function*(){const{include:l,exclude:o,optimistic:a,useEnumType:u,enumStyle:i,mergeReadWriteOnly:c,useUnknown:s,argumentStyle:e,allSchemas:r,numericBooleanQueryParameters:f,futureStripLegacyMethods:h,help:x,version:O}=t,[m,p]=t._;if(x&&(S(),process.exit(0)),O){const v=JSON.parse(yield g.readFile(b.join(__dirname,"..","package.json"),"utf8"));console.log(v.version),process.exit(0)}m||(S(),process.exit(1)),e!==void 0&&!n.argumentStyleOptions.includes(e)&&(console.error(`--argumentStyle should be one of <${n.argumentStyleOptions.join(" | ")}>, but got "${e}"`),process.exit(1)),i!==void 0&&!n.enumStyleOptions.includes(i)&&(console.error(`--enumStyle should be one of <${n.enumStyleOptions.join(" | ")}>, but got "${i}"`),process.exit(1));const d=yield n.generateSource(m,{include:l,exclude:o,optimistic:a,useEnumType:u,enumStyle:i,useUnknown:s,mergeReadWriteOnly:c,argumentStyle:e,allSchemas:r,numericBooleanQueryParameters:f,futureStripLegacyMethods:h});p?yield g.writeFile(p,d):console.log(d)})}function S(){console.error(`
|
|
3
3
|
Usage:
|
|
4
4
|
oazapfts <spec> [filename]
|
|
5
5
|
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { readFile as w, writeFile as O } from "fs/promises";
|
|
3
3
|
import b from "minimist";
|
|
4
4
|
import { join as j } from "path";
|
|
5
|
-
import { a as t, e as i, g as $ } from "./index-
|
|
5
|
+
import { a as t, e as i, g as $ } from "./index-DSUZQa3z.js";
|
|
6
6
|
async function k(e) {
|
|
7
7
|
const {
|
|
8
8
|
include: u,
|