rollup-plugin-zephyr 0.0.0-canary-20250728214036 → 0.0.0-canary-20250806121212

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.
@@ -2,8 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAssetsMap = getAssetsMap;
4
4
  const zephyr_agent_1 = require("zephyr-agent");
5
- const zephyr_rollx_internal_1 = require("zephyr-rollx-internal");
6
5
  function getAssetsMap(assets) {
7
- return (0, zephyr_agent_1.buildAssetsMap)(assets, zephyr_rollx_internal_1.extractRollxBuffer, zephyr_rollx_internal_1.getRollxAssetType);
6
+ return (0, zephyr_agent_1.buildAssetsMap)(assets, extractBuffer, getAssetType);
8
7
  }
8
+ const extractBuffer = (asset) => {
9
+ switch (asset.type) {
10
+ case 'chunk':
11
+ return asset.code;
12
+ case 'asset':
13
+ return typeof asset.source === 'string'
14
+ ? asset.source
15
+ : new TextDecoder().decode(asset.source);
16
+ default:
17
+ return void 0;
18
+ }
19
+ };
20
+ const getAssetType = (asset) => asset.type;
9
21
  //# sourceMappingURL=get-assets-map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/transform/get-assets-map.ts"],"names":[],"mappings":";;AAKA,oCAEC;AALD,+CAA8C;AAC9C,iEAA8E;AAE9E,SAAgB,YAAY,CAAC,MAAoB;IAC/C,OAAO,IAAA,6BAAc,EAAC,MAAM,EAAE,0CAAkB,EAAE,yCAAiB,CAAC,CAAC;AACvE,CAAC"}
1
+ {"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/transform/get-assets-map.ts"],"names":[],"mappings":";;AAIA,oCAEC;AAJD,+CAA8C;AAE9C,SAAgB,YAAY,CAAC,MAAoB;IAC/C,OAAO,IAAA,6BAAc,EAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,KAAgC,EAAsB,EAAE;IAC7E,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;gBACrC,CAAC,CAAC,KAAK,CAAC,MAAM;gBACd,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7C;YACE,OAAO,KAAK,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC"}
package/dist/package.json CHANGED
@@ -29,8 +29,7 @@
29
29
  "is-ci": "catalog:plugin-shared",
30
30
  "rollup": "catalog:rollup4",
31
31
  "tslib": "catalog:typescript",
32
- "zephyr-agent": "workspace:*",
33
- "zephyr-rollx-internal": "workspace:*"
32
+ "zephyr-agent": "workspace:*"
34
33
  },
35
34
  "devDependencies": {
36
35
  "@types/is-ci": "catalog:typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-zephyr",
3
- "version": "0.0.0-canary-20250728214036",
3
+ "version": "0.0.0-canary-20250806121212",
4
4
  "description": "Rollup plugin for Zephyr",
5
5
  "keywords": [
6
6
  "rollup",
@@ -25,8 +25,7 @@
25
25
  "is-ci": "^4.1.0",
26
26
  "rollup": "^4.36.0",
27
27
  "tslib": "^2.8.1",
28
- "zephyr-agent": "0.0.0-canary-20250728214036",
29
- "zephyr-rollx-internal": "0.0.0-canary-20250728214036"
28
+ "zephyr-agent": "0.0.0-canary-20250806121212"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@types/is-ci": "3.0.4",