zephyr-astro-integration 0.1.1 → 0.1.2-next.1

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.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  import { withZephyr } from './lib/astro-integration-zephyr';
2
2
  export { withZephyr };
3
+ export type { ZephyrAstroOptions } from './lib/astro-integration-zephyr';
4
+ export type { ZephyrBuildHooks, DeploymentInfo } from 'zephyr-agent';
3
5
  export default withZephyr;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6EAA4D;AACnD,2FADA,qCAAU,OACA;AACnB,kBAAe,qCAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6EAA4D;AACnD,2FADA,qCAAU,OACA;AAGnB,kBAAe,qCAAU,CAAC"}
@@ -1,2 +1,6 @@
1
1
  import type { AstroIntegration } from 'astro';
2
- export declare function withZephyr(): AstroIntegration;
2
+ import { type ZephyrBuildHooks } from 'zephyr-agent';
3
+ export interface ZephyrAstroOptions {
4
+ hooks?: ZephyrBuildHooks;
5
+ }
6
+ export declare function withZephyr(options?: ZephyrAstroOptions): AstroIntegration;
@@ -5,8 +5,9 @@ const tslib_1 = require("tslib");
5
5
  const node_url_1 = require("node:url");
6
6
  const zephyr_agent_1 = require("zephyr-agent");
7
7
  const extract_astro_assets_map_1 = require("./internal/extract-astro-assets-map");
8
- function withZephyr() {
8
+ function withZephyr(options) {
9
9
  const { zephyr_engine_defer, zephyr_defer_create } = zephyr_agent_1.ZephyrEngine.defer_create();
10
+ const hooks = options === null || options === void 0 ? void 0 : options.hooks;
10
11
  return {
11
12
  name: 'with-zephyr',
12
13
  hooks: {
@@ -41,6 +42,7 @@ function withZephyr() {
41
42
  await zephyr_engine.upload_assets({
42
43
  assetsMap,
43
44
  buildStats: await (0, zephyr_agent_1.zeBuildDashData)(zephyr_engine),
45
+ hooks,
44
46
  });
45
47
  // Mark build as finished
46
48
  await zephyr_engine.build_finished();
@@ -1 +1 @@
1
- {"version":3,"file":"astro-integration-zephyr.js","sourceRoot":"","sources":["../../src/lib/astro-integration-zephyr.ts"],"names":[],"mappings":";;AASA,gCAqDC;;AA7DD,uCAAyC;AACzC,+CAAiF;AACjF,kFAAsF;AAMtF,SAAgB,UAAU;IACxB,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAAY,CAAC,YAAY,EAAE,CAAC;IAEjF,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE;YACL,mBAAmB,EAAE,KAAK,EAAE,EAAE,MAAM,EAAuC,EAAE,EAAE;gBAC7E,oDAAoD;gBACpD,MAAM,WAAW,GAAG,IAAA,wBAAa,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC/C,IAAI,CAAC;oBACH,6CAA6C;oBAC7C,mBAAmB,CAAC;wBAClB,OAAO,EAAE,OAAO;wBAChB,OAAO,EAAE,WAAW;qBACrB,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;YACD,kBAAkB,EAAE,KAAK,EAAE,EAGU,EAAE,EAAE;oBAHd,EACzB,GAAG,OAEgC,EADhC,MAAM,sBAFgB,OAG1B,CADU;gBAET,IAAI,CAAC;oBACH,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC;oBAEhD,kCAAkC;oBAClC,MAAM,UAAU,GAAG,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAC;oBAEtC,wCAAwC;oBACxC,aAAa,CAAC,eAAe,CAAC,MAAM,GAAG,UAAU,CAAC;oBAElD,oBAAoB;oBACpB,MAAM,aAAa,CAAC,eAAe,EAAE,CAAC;oBAEtC,sFAAsF;oBACtF,MAAM,MAAM,GAAI,MAA+B,CAAC,MAAM,CAAC;oBACvD,MAAM,SAAS,GAAG,MAAM,IAAA,0DAA+B,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;oBAE5E,gCAAgC;oBAChC,MAAM,aAAa,CAAC,aAAa,CAAC;wBAChC,SAAS;wBACT,UAAU,EAAE,MAAM,IAAA,8BAAe,EAAC,aAAa,CAAC;qBACjD,CAAC,CAAC;oBAEH,yBAAyB;oBACzB,MAAM,aAAa,CAAC,cAAc,EAAE,CAAC;gBACvC,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"astro-integration-zephyr.js","sourceRoot":"","sources":["../../src/lib/astro-integration-zephyr.ts"],"names":[],"mappings":";;AAmBA,gCAuDC;;AAzED,uCAAyC;AACzC,+CAMsB;AACtB,kFAAsF;AAUtF,SAAgB,UAAU,CAAC,OAA4B;IACrD,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAAY,CAAC,YAAY,EAAE,CAAC;IACjF,MAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC;IAE7B,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE;YACL,mBAAmB,EAAE,KAAK,EAAE,EAAE,MAAM,EAAuC,EAAE,EAAE;gBAC7E,oDAAoD;gBACpD,MAAM,WAAW,GAAG,IAAA,wBAAa,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC/C,IAAI,CAAC;oBACH,6CAA6C;oBAC7C,mBAAmB,CAAC;wBAClB,OAAO,EAAE,OAAO;wBAChB,OAAO,EAAE,WAAW;qBACrB,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;YACD,kBAAkB,EAAE,KAAK,EAAE,EAGU,EAAE,EAAE;oBAHd,EACzB,GAAG,OAEgC,EADhC,MAAM,sBAFgB,OAG1B,CADU;gBAET,IAAI,CAAC;oBACH,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC;oBAEhD,kCAAkC;oBAClC,MAAM,UAAU,GAAG,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAC;oBAEtC,wCAAwC;oBACxC,aAAa,CAAC,eAAe,CAAC,MAAM,GAAG,UAAU,CAAC;oBAElD,oBAAoB;oBACpB,MAAM,aAAa,CAAC,eAAe,EAAE,CAAC;oBAEtC,sFAAsF;oBACtF,MAAM,MAAM,GAAI,MAA+B,CAAC,MAAM,CAAC;oBACvD,MAAM,SAAS,GAAG,MAAM,IAAA,0DAA+B,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;oBAE5E,gCAAgC;oBAChC,MAAM,aAAa,CAAC,aAAa,CAAC;wBAChC,SAAS;wBACT,UAAU,EAAE,MAAM,IAAA,8BAAe,EAAC,aAAa,CAAC;wBAChD,KAAK;qBACN,CAAC,CAAC;oBAEH,yBAAyB;oBACzB,MAAM,aAAa,CAAC,cAAc,EAAE,CAAC;gBACvC,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-astro-integration",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Astro integration for Zephyr Cloud deployment and module federation",
5
5
  "homepage": "https://github.com/ZephyrCloudIO/zephyr-packages/tree/main/libs/zephyr-astro-integration#readme",
6
6
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-astro-integration",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-next.1",
4
4
  "description": "Astro integration for Zephyr Cloud deployment and module federation",
5
5
  "homepage": "https://github.com/ZephyrCloudIO/zephyr-packages/tree/main/libs/zephyr-astro-integration#readme",
6
6
  "repository": {
@@ -42,7 +42,7 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "is-ci": "^4.1.0",
45
- "zephyr-agent": "0.1.1"
45
+ "zephyr-agent": "0.1.2-next.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/jest": "29.5.14",