@interfere/build 0.3.0 → 0.3.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.
@@ -36,6 +36,8 @@ export declare function resolveReleaseRequest(input: {
36
36
  environmentName: string | null;
37
37
  environmentTarget: string | null;
38
38
  provider: "cloudflare";
39
+ deploymentId?: string | null | undefined;
40
+ trafficPercentage?: number | null | undefined;
39
41
  scriptName: string | null;
40
42
  versionId: string | null;
41
43
  } | {
@@ -36,6 +36,8 @@ export declare function resolveReleaseRequest(input: {
36
36
  environmentName: string | null;
37
37
  environmentTarget: string | null;
38
38
  provider: "cloudflare";
39
+ deploymentId?: string | null | undefined;
40
+ trafficPercentage?: number | null | undefined;
39
41
  scriptName: string | null;
40
42
  versionId: string | null;
41
43
  } | {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let node_util=require("node:util"),node_zlib=require("node:zlib");const compress=(0,node_util.promisify)(node_zlib.gzip),sourceMapUploadFetch=Object.assign(async(input,init)=>{let request=new Request(input,init);if(request.headers.get(`content-encoding`)!==`gzip`)return fetch(request);let bytes=await request.arrayBuffer(),body=await compress(bytes),headers=new Headers(request.headers);return headers.delete(`content-length`),body.byteLength>=bytes.byteLength?(headers.delete(`content-encoding`),fetch(new Request(request,{body:bytes,headers,method:request.method}))):fetch(new Request(request,{body,headers,method:request.method}))},fetch);exports.sourceMapUploadFetch=sourceMapUploadFetch;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let node_util=require("node:util"),node_zlib=require("node:zlib");const compress=(0,node_util.promisify)(node_zlib.gzip),sourceMapUploadFetch=Object.assign(async(input,init)=>{let request=new Request(input,init);if(request.method===`POST`&&new URL(request.url).pathname.endsWith(`/source-maps/sign`)&&request.headers.set(`x-interfere-source-map-compression`,`gzip`),request.headers.get(`content-encoding`)!==`gzip`)return fetch(request);let bytes=await request.arrayBuffer(),body=await compress(bytes),headers=new Headers(request.headers);return headers.delete(`content-length`),body.byteLength>=bytes.byteLength?(headers.delete(`content-encoding`),fetch(new Request(request,{body:bytes,headers,method:request.method}))):fetch(new Request(request,{body,headers,method:request.method}))},fetch);exports.sourceMapUploadFetch=sourceMapUploadFetch;
@@ -1 +1 @@
1
- import{promisify}from"node:util";import{gzip}from"node:zlib";const compress=promisify(gzip),sourceMapUploadFetch=Object.assign(async(input,init)=>{let request=new Request(input,init);if(request.headers.get(`content-encoding`)!==`gzip`)return fetch(request);let bytes=await request.arrayBuffer(),body=await compress(bytes),headers=new Headers(request.headers);return headers.delete(`content-length`),body.byteLength>=bytes.byteLength?(headers.delete(`content-encoding`),fetch(new Request(request,{body:bytes,headers,method:request.method}))):fetch(new Request(request,{body,headers,method:request.method}))},fetch);export{sourceMapUploadFetch};
1
+ import{promisify}from"node:util";import{gzip}from"node:zlib";const compress=promisify(gzip),sourceMapUploadFetch=Object.assign(async(input,init)=>{let request=new Request(input,init);if(request.method===`POST`&&new URL(request.url).pathname.endsWith(`/source-maps/sign`)&&request.headers.set(`x-interfere-source-map-compression`,`gzip`),request.headers.get(`content-encoding`)!==`gzip`)return fetch(request);let bytes=await request.arrayBuffer(),body=await compress(bytes),headers=new Headers(request.headers);return headers.delete(`content-length`),body.byteLength>=bytes.byteLength?(headers.delete(`content-encoding`),fetch(new Request(request,{body:bytes,headers,method:request.method}))):fetch(new Request(request,{body,headers,method:request.method}))},fetch);export{sourceMapUploadFetch};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/build",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Release preparation for Interfere build integrations.",
5
5
  "keywords": [
6
6
  "build",
@@ -94,16 +94,16 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "@interfere/javascript": "^0.2.1",
97
- "@interfere/types": "^10.2.2"
97
+ "@interfere/types": "^10.3.0"
98
98
  },
99
99
  "devDependencies": {
100
100
  "@interfere/typescript-config": "^9.0.2",
101
101
  "@interfere/vitest-config": "0.0.0",
102
102
  "@types/node": "^26.4.1",
103
- "@vitest/coverage-v8": "5.0.1",
103
+ "@vitest/coverage-v8": "5.0.5",
104
104
  "msw": "^2.14.6",
105
105
  "tsdown": "^0.23.0",
106
106
  "typescript": "^7.0.2",
107
- "vitest": "5.0.1"
107
+ "vitest": "5.0.5"
108
108
  }
109
109
  }