@devup-api/vite-plugin 0.1.3 → 0.1.5
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var{defineProperty:
|
|
1
|
+
var{defineProperty:E,getOwnPropertyNames:P,getOwnPropertyDescriptor:Q}=Object,R=Object.prototype.hasOwnProperty;var H=new WeakMap,V=(x)=>{var b=H.get(x),q;if(b)return b;if(b=E({},"__esModule",{value:!0}),x&&typeof x==="object"||typeof x==="function")P(x).map((k)=>!R.call(b,k)&&E(b,k,{get:()=>x[k],enumerable:!(q=Q(x,k))||q.enumerable}));return H.set(x,b),b};var W=(x,b)=>{for(var q in b)E(x,q,{get:b[q],enumerable:!0,configurable:!0,set:(k)=>b[q]=()=>k})};var X={};W(X,{devupApi:()=>L,default:()=>L});module.exports=V(X);var K=require("node:path"),C=require("@devup-api/generator"),B=require("@devup-api/utils");function L(x){return{name:"devup-api",async configResolved(){let b=await B.createTmpDirAsync(x?.tempDir),q=B.normalizeOpenapiFiles(x?.openapiFiles),k=await B.readOpenapiAsync(q);await B.writeInterfaceAsync(K.join(b,"api.d.ts"),C.generateInterface(k,x))},async config(){let b=B.normalizeOpenapiFiles(x?.openapiFiles),q=await B.readOpenapiAsync(b),k=C.createUrlMap(q,x),G={};if(k&&Object.keys(k).length>0)G["process.env.DEVUP_API_URL_MAP"]=JSON.stringify(JSON.stringify(k));return{define:G}}}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{join as
|
|
1
|
+
import{join as G}from"node:path";import{createUrlMap as H,generateInterface as K}from"@devup-api/generator";import{createTmpDirAsync as L,normalizeOpenapiFiles as C,readOpenapiAsync as E,writeInterfaceAsync as P}from"@devup-api/utils";function Q(x){return{name:"devup-api",async configResolved(){let k=await L(x?.tempDir),q=C(x?.openapiFiles),b=await E(q);await P(G(k,"api.d.ts"),K(b,x))},async config(){let k=C(x?.openapiFiles),q=await E(k),b=H(q,x),B={};if(b&&Object.keys(b).length>0)B["process.env.DEVUP_API_URL_MAP"]=JSON.stringify(JSON.stringify(b));return{define:B}}}}export{Q as devupApi,Q as default};
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAQtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,MAAM,CA6B1D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devup-api/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@devup-api/utils": "0.1.
|
|
24
|
-
"@devup-api/core": "0.1.
|
|
25
|
-
"@devup-api/generator": "0.1.
|
|
23
|
+
"@devup-api/utils": "0.1.5",
|
|
24
|
+
"@devup-api/core": "0.1.5",
|
|
25
|
+
"@devup-api/generator": "0.1.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"vite": "*",
|