@devup-api/rsbuild-plugin 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/index.cjs +1 -1
  2. package/package.json +3 -3
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- var{defineProperty:H,getOwnPropertyNames:W,getOwnPropertyDescriptor:X}=Object,Y=Object.prototype.hasOwnProperty;var L=new WeakMap,_=(R)=>{var x=L.get(R),q;if(x)return x;if(x=H({},"__esModule",{value:!0}),R&&typeof R==="object"||typeof R==="function")W(R).map((B)=>!Y.call(x,B)&&H(x,B,{get:()=>R[B],enumerable:!(q=X(R,B))||q.enumerable}));return L.set(R,x),x};var $=(R,x)=>{for(var q in x)H(R,q,{get:x[q],enumerable:!0,configurable:!0,set:(B)=>x[q]=()=>B})};var b={};$(b,{devupApiRsbuildPlugin:()=>N,default:()=>N});module.exports=_(b);var J=require("node:path"),j=require("@devup-api/generator"),k=require("@devup-api/utils");function N(R){return{name:"devup-api",async setup(x){let q={createTmpDirAsync:k.createTmpDirAsync,normalizeOpenapiFiles:k.normalizeOpenapiFiles,readOpenapiAsync:k.readOpenapiAsync,writeInterfaceAsync:k.writeInterfaceAsync},B={generateInterface:j.generateInterface,generateZodSchemas:j.generateZodSchemas,generateZodTypeDeclarations:j.generateZodTypeDeclarations,generateCrudConfigCode:j.generateCrudConfigCode,generateCrudConfigTypes:j.generateCrudConfigTypes,createUrlMap:j.createUrlMap},{tempDir:K,urlMap:G}=await k.generateDevupArtifactsAsync(q,B,R),Q=J.resolve(K,"zod-schemas.js"),V=J.resolve(K,"crud-configs.jsx");x.modifyRsbuildConfig((E)=>{if(E.source??={},E.resolve??={},E.source.define??={},E.resolve.alias??={},G&&Object.keys(G).length>0)E.source.define["process.env.DEVUP_API_URL_MAP"]=JSON.stringify(JSON.stringify(G));return E.resolve.alias["@devup-api/zod"]=Q,E.resolve.alias["@devup-api/ui/crud"]=V,E})}}}
1
+ var{defineProperty:H,getOwnPropertyNames:W,getOwnPropertyDescriptor:X}=Object,Y=Object.prototype.hasOwnProperty;function _(x){return this[x]}var $=(x)=>{var R=(L??=new WeakMap).get(x),q;if(R)return R;if(R=H({},"__esModule",{value:!0}),x&&typeof x==="object"||typeof x==="function"){for(var E of W(x))if(!Y.call(R,E))H(R,E,{get:_.bind(x,E),enumerable:!(q=X(x,E))||q.enumerable})}return L.set(x,R),R},L;var b=(x)=>x;function w(x,R){this[x]=b.bind(null,R)}var F=(x,R)=>{for(var q in R)H(x,q,{get:R[q],enumerable:!0,configurable:!0,set:w.bind(R,q)})};var P={};F(P,{devupApiRsbuildPlugin:()=>N,default:()=>N});module.exports=$(P);var J=require("node:path"),j=require("@devup-api/generator"),k=require("@devup-api/utils");function N(x){return{name:"devup-api",async setup(R){let q={createTmpDirAsync:k.createTmpDirAsync,normalizeOpenapiFiles:k.normalizeOpenapiFiles,readOpenapiAsync:k.readOpenapiAsync,writeInterfaceAsync:k.writeInterfaceAsync},E={generateInterface:j.generateInterface,generateZodSchemas:j.generateZodSchemas,generateZodTypeDeclarations:j.generateZodTypeDeclarations,generateCrudConfigCode:j.generateCrudConfigCode,generateCrudConfigTypes:j.generateCrudConfigTypes,createUrlMap:j.createUrlMap},{tempDir:K,urlMap:G}=await k.generateDevupArtifactsAsync(q,E,x),Q=J.resolve(K,"zod-schemas.js"),V=J.resolve(K,"crud-configs.jsx");R.modifyRsbuildConfig((B)=>{if(B.source??={},B.resolve??={},B.source.define??={},B.resolve.alias??={},G&&Object.keys(G).length>0)B.source.define["process.env.DEVUP_API_URL_MAP"]=JSON.stringify(JSON.stringify(G));return B.resolve.alias["@devup-api/zod"]=Q,B.resolve.alias["@devup-api/ui/crud"]=V,B})}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devup-api/rsbuild-plugin",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@devup-api/utils": "^0.1.8",
24
- "@devup-api/core": "^0.1.13",
25
- "@devup-api/generator": "^0.1.17"
24
+ "@devup-api/core": "^0.1.14",
25
+ "@devup-api/generator": "^0.1.19"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@rsbuild/core": "*",