@molecule/api-code-sandbox-flyio 1.0.15 → 1.0.16

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.
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAUV,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAsBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAEV,WAAW,EAUZ,MAAM,YAAY,CAAA;AAm4DnB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,eAAe,CAEjB"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAUV,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAsBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAEV,WAAW,EAUZ,MAAM,YAAY,CAAA;AAk4DnB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,eAAe,CAEjB"}
package/dist/provider.js CHANGED
@@ -635,17 +635,16 @@ class FlyioSandboxProvider {
635
635
  */
636
636
  async assignSharedIpv4(app) {
637
637
  try {
638
- // NO org_slug: the ip_assignments endpoint derives the org from the app
639
- // (like the private-IP allocation) and 400s "unknown field org_slug" when
640
- // it is sent — which silently left every sandbox app WITHOUT a public IP,
641
- // so its `<app>.fly.dev` preview URL never routed and the IDE hung on
642
- // "Loading preview…" forever. Same fix that was already applied to the
643
- // private-address allocation.
638
+ // ONLY `type` — verified against the live API 2026-08-09. Both `region`
639
+ // ("region selection is not supported for this IP type", 400) and
640
+ // `org_slug` are rejected for a shared IPv4; sending either left every
641
+ // sandbox app WITHOUT a public IP, so its preview URL never routed and the
642
+ // IDE hung on "Loading preview…" forever. The org derives from the app and
643
+ // a shared v4 is global (no region).
644
644
  await this.client.request(`/apps/${app}/ip_assignments`, {
645
645
  method: 'POST',
646
646
  body: {
647
647
  type: this.config.ipAssignmentType ?? 'shared_v4',
648
- region: this.region(),
649
648
  },
650
649
  });
651
650
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-code-sandbox-flyio",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Fly.io Machines (Firecracker microVM) code sandbox provider",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",