@flighthq/net 0.5.1-edge.1692.64cda40 → 0.5.1-edge.1892.cbd15bd
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/README.md +2 -2
- package/dist/contract.d.ts +3 -3
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +3 -3
- package/dist/contract.js.map +1 -1
- package/dist/enableNetGuards.js +1 -1
- package/dist/enableNetGuards.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/enableNetGuards.test.ts +2 -2
- package/src/net.test.ts +2 -2
- package/src/netForm.test.ts +1 -1
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/net`. The `@flighthq
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/net@0.5.1-edge.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/net@0.5.1-edge.1892.cbd15bd](https://github.com/flighthq/flight/tree/cbd15bd13373265e8f6dcf0cb057a16aee812919/packages/net)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/cbd15bd13373265e8f6dcf0cb057a16aee812919/LICENSE.md)
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './enableNetGuards';
|
|
2
|
-
export * from './net';
|
|
3
|
-
export * from './netForm';
|
|
1
|
+
export * from './enableNetGuards.ts';
|
|
2
|
+
export * from './net.ts';
|
|
3
|
+
export * from './netForm.ts';
|
|
4
4
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./enableNetGuards.js";
|
|
2
|
+
export * from "./net.js";
|
|
3
|
+
export * from "./netForm.js";
|
|
4
4
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
package/dist/enableNetGuards.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableNetGuards.js","sourceRoot":"","sources":["../src/enableNetGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"enableNetGuards.js","sourceRoot":"","sources":["../src/enableNetGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,UAAU,mBAAmB;IACjC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,WAAW,CAAC,IAAI,CAAC,CAAC;IAClB,QAAQ,GAAG,KAAK,CAAC;AACnB,CAAC;AAED,oGAAoG;AACpG,0FAA0F;AAC1F,oDAAoD;AACpD,MAAM,UAAU,eAAe;IAC7B,WAAW,CAAC,eAAe,CAAC,CAAC;IAC7B,QAAQ,GAAG,IAAI,CAAC;AAClB,CAAC;AAED,SAAS,eAAe,CAAC,MAAgC;IACvD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC;IAClD,IAAI,OAAe,CAAC;IACpB,IAAI,MAAM,CAAC,MAAM,KAAK,qBAAqB,EAAE,CAAC;QAC5C,OAAO,GAAG,mBAAmB,MAAM,CAAC,WAAW,EAAE,kFAAkF,CAAC;IACtI,CAAC;SAAM,IAAI,MAAM,CAAC,MAAM,KAAK,kBAAkB,EAAE,CAAC;QAChD,OAAO;YACL,uHAAuH,CAAC;IAC5H,CAAC;SAAM,CAAC;QACN,OAAO;YACL,wJAAwJ,CAAC;IAC7J,CAAC;IACD,OAAO,CACL,OAAO,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,EAC1C,QAAQ,CAAC,IAAI,EACb,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,EACvF,KAAK,CACN,CAAC;AACJ,CAAC;AAED,IAAI,QAAQ,GAAG,KAAK,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { areNetGuardsEnabled, disableNetGuards, enableNetGuards, explainNetResponse, formatNetFormBody, NetFormContentType, sendNetRequest, } from './contract';
|
|
1
|
+
export { areNetGuardsEnabled, disableNetGuards, enableNetGuards, explainNetResponse, formatNetFormBody, NetFormContentType, sendNetRequest, } from './contract.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { areNetGuardsEnabled, disableNetGuards, enableNetGuards, explainNetResponse, formatNetFormBody, NetFormContentType, sendNetRequest, } from
|
|
1
|
+
export { areNetGuardsEnabled, disableNetGuards, enableNetGuards, explainNetResponse, formatNetFormBody, NetFormContentType, sendNetRequest, } from "./contract.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/net",
|
|
3
|
-
"version": "0.5.1-edge.
|
|
3
|
+
"version": "0.5.1-edge.1892.cbd15bd",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/log": "0.5.1-edge.
|
|
42
|
-
"@flighthq/types": "0.5.1-edge.
|
|
41
|
+
"@flighthq/log": "0.5.1-edge.1892.cbd15bd",
|
|
42
|
+
"@flighthq/types": "0.5.1-edge.1892.cbd15bd"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.3.0"
|
|
@@ -2,8 +2,8 @@ import { addLogSink, createMemoryLogSink, getMemoryLogSinkEntries, removeLogSink
|
|
|
2
2
|
import type { HostNetCapability, LogEntry, NetResponse } from '@flighthq/types/contract';
|
|
3
3
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
4
4
|
|
|
5
|
-
import { areNetGuardsEnabled, disableNetGuards, enableNetGuards } from './enableNetGuards';
|
|
6
|
-
import { sendNetRequest } from './net';
|
|
5
|
+
import { areNetGuardsEnabled, disableNetGuards, enableNetGuards } from './enableNetGuards.ts';
|
|
6
|
+
import { sendNetRequest } from './net.ts';
|
|
7
7
|
|
|
8
8
|
function captureLog(run: () => Promise<void>): Promise<readonly LogEntry[]> {
|
|
9
9
|
const sink = createMemoryLogSink(8);
|
package/src/net.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HostNetCapability, NetGuardNotice, NetRequest, NetResponse } from '@flighthq/types/contract';
|
|
2
2
|
|
|
3
|
-
import * as netContract from './net';
|
|
4
|
-
import { explainNetResponse, sendNetRequest, setNetGuard } from './net';
|
|
3
|
+
import * as netContract from './net.ts';
|
|
4
|
+
import { explainNetResponse, sendNetRequest, setNetGuard } from './net.ts';
|
|
5
5
|
|
|
6
6
|
function fakeHost(backend?: Pick<HostNetCapability, 'sendNetRequest'>): {
|
|
7
7
|
readonly net: { readonly http: HostNetCapability };
|
package/src/netForm.test.ts
CHANGED