@devup-api/next-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 +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var{defineProperty:
|
|
1
|
+
var{defineProperty:K,getOwnPropertyNames:V,getOwnPropertyDescriptor:X}=Object,Y=Object.prototype.hasOwnProperty;var N=new WeakMap,Z=(x)=>{var q=N.get(x),B;if(q)return q;if(q=K({},"__esModule",{value:!0}),x&&typeof x==="object"||typeof x==="function")V(x).map((y)=>!Y.call(q,y)&&K(q,y,{get:()=>x[y],enumerable:!(B=X(x,y))||B.enumerable}));return N.set(x,q),q};var $=(x,q)=>{for(var B in q)K(x,B,{get:q[B],enumerable:!0,configurable:!0,set:(y)=>q[B]=()=>y})};var j={};$(j,{devupApi:()=>S,default:()=>S});module.exports=Z(j);var Q=require("node:path"),G=require("@devup-api/generator"),A=require("@devup-api/utils"),R=require("@devup-api/webpack-plugin");function S(x,q={}){if(process.env.TURBOPACK==="1"||process.env.TURBOPACK==="auto"){let E=A.createTmpDir(q?.tempDir),H=A.normalizeOpenapiFiles(q?.openapiFiles),L=A.readOpenapis(H);A.writeInterface(Q.join(E,"api.d.ts"),G.generateInterface(L,q));let J=G.createUrlMap(L,q);if(x.env??={},J&&Object.keys(J).length>0)Object.assign(x.env,{DEVUP_API_URL_MAP:JSON.stringify(J)});return x}let y=x.webpack;return x.webpack=(E,H)=>{if(E.plugins.push(new R.devupApiWebpackPlugin(q)),typeof y==="function")return y(E,H);return E},x}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{join as
|
|
1
|
+
import{join as H}from"node:path";import{createUrlMap as J,generateInterface as K}from"@devup-api/generator";import{createTmpDir as L,normalizeOpenapiFiles as N,readOpenapis as Q,writeInterface as R}from"@devup-api/utils";import{devupApiWebpackPlugin as S}from"@devup-api/webpack-plugin";function V(x,q={}){if(process.env.TURBOPACK==="1"||process.env.TURBOPACK==="auto"){let y=L(q?.tempDir),A=N(q?.openapiFiles),G=Q(A);R(H(y,"api.d.ts"),K(G,q));let B=J(G,q);if(x.env??={},B&&Object.keys(B).length>0)Object.assign(x.env,{DEVUP_API_URL_MAP:JSON.stringify(B)});return x}let E=x.webpack;return x.webpack=(y,A)=>{if(y.plugins.push(new S(q)),typeof E==="function")return E(y,A);return y},x}export{V as devupApi,V 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;AAStD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAEtC,wBAAgB,QAAQ,CACtB,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,eAAoB,GAC5B,UAAU,CA8BZ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devup-api/next-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,10 +20,10 @@
|
|
|
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.
|
|
26
|
-
"@devup-api/webpack-plugin": "0.1.
|
|
23
|
+
"@devup-api/utils": "0.1.5",
|
|
24
|
+
"@devup-api/core": "0.1.5",
|
|
25
|
+
"@devup-api/generator": "0.1.5",
|
|
26
|
+
"@devup-api/webpack-plugin": "0.1.5"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"next": "*",
|