@workflow/next 4.0.1-beta.0 → 4.0.1-beta.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/loader.d.ts +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +2 -2
- package/dist/loader.js.map +1 -1
- package/package.json +11 -4
package/dist/loader.d.ts
CHANGED
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAIA,wBAA8B,cAAc,CAC1C,IAAI,EAAE;IACJ,YAAY,EAAE,MAAM,CAAC;CACtB,EACD,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,SAAS,EAAE,GAAG,GACb,OAAO,CAAC,MAAM,CAAC,CAkCjB"}
|
package/dist/loader.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.default = workflowLoader;
|
|
|
4
4
|
const core_1 = require("@swc/core");
|
|
5
5
|
// This loader applies the "use workflow"/"use step"
|
|
6
6
|
// client transformation
|
|
7
|
-
function workflowLoader(source, sourceMap) {
|
|
7
|
+
async function workflowLoader(source, sourceMap) {
|
|
8
8
|
const filename = this.resourcePath;
|
|
9
9
|
const normalizedSource = source.toString();
|
|
10
10
|
// only apply the transform if file needs it
|
|
@@ -14,7 +14,7 @@ function workflowLoader(source, sourceMap) {
|
|
|
14
14
|
const isTypeScript = filename.endsWith('.ts') || filename.endsWith('.tsx');
|
|
15
15
|
const isTsx = filename.endsWith('.tsx');
|
|
16
16
|
// Transform with SWC
|
|
17
|
-
const result = (0, core_1.
|
|
17
|
+
const result = await (0, core_1.transform)(normalizedSource, {
|
|
18
18
|
filename,
|
|
19
19
|
jsc: {
|
|
20
20
|
parser: {
|
package/dist/loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":";;AAIA,iCAwCC;AA5CD,
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":";;AAIA,iCAwCC;AA5CD,oCAAsC;AAEtC,oDAAoD;AACpD,wBAAwB;AACT,KAAK,UAAU,cAAc,CAI1C,MAAuB,EACvB,SAAc;IAEd,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC;IACnC,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IAE3C,4CAA4C;IAC5C,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE,CAAC;QACvD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,YAAY,GAAG,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3E,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAExC,qBAAqB;IACrB,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAS,EAAC,gBAAgB,EAAE;QAC/C,QAAQ;QACR,GAAG,EAAE;YACH,MAAM,EAAE;gBACN,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY;gBAClD,GAAG,EAAE,KAAK;aACX;YACD,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE;gBACZ,OAAO,EAAE;oBACP,CAAC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;iBAC9D;aACF;SACF;QACD,MAAM,EAAE,KAAK;QACb,cAAc,EAAE,SAAS;QACzB,UAAU,EAAE,IAAI;QAChB,oBAAoB,EAAE,IAAI;KAC3B,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/next",
|
|
3
|
-
"version": "4.0.1-beta.
|
|
3
|
+
"version": "4.0.1-beta.2",
|
|
4
|
+
"description": "Next.js integration for Workflow DevKit",
|
|
4
5
|
"type": "commonjs",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"files": [
|
|
@@ -9,6 +10,12 @@
|
|
|
9
10
|
"publishConfig": {
|
|
10
11
|
"access": "public"
|
|
11
12
|
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/vercel/workflow.git",
|
|
17
|
+
"directory": "packages/next"
|
|
18
|
+
},
|
|
12
19
|
"exports": {
|
|
13
20
|
".": "./dist/index.js",
|
|
14
21
|
"./loader": "./dist/loader.js",
|
|
@@ -16,9 +23,9 @@
|
|
|
16
23
|
},
|
|
17
24
|
"dependencies": {
|
|
18
25
|
"@swc/core": "1.11.24",
|
|
19
|
-
"@workflow/cli": "4.0.1-beta.
|
|
20
|
-
"@workflow/core": "4.0.1-beta.
|
|
21
|
-
"@workflow/swc-plugin": "4.0.1-beta.
|
|
26
|
+
"@workflow/cli": "4.0.1-beta.2",
|
|
27
|
+
"@workflow/core": "4.0.1-beta.2",
|
|
28
|
+
"@workflow/swc-plugin": "4.0.1-beta.1"
|
|
22
29
|
},
|
|
23
30
|
"devDependencies": {
|
|
24
31
|
"@types/node": "24.6.2",
|