Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect/platform-node

Package Overview
Dependencies
Maintainers
3
Versions
428
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/platform-node - npm Package Compare versions

Comparing version 0.64.0 to 0.64.1

6

dist/cjs/internal/httpServer.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.toServerResponse = exports.toIncomingMessage = exports.makeUpgradeHandler = exports.makeHandler = exports.make = exports.layerTest = exports.layerServer = exports.layerConfig = exports.layer = void 0;
exports.toServerResponse = exports.toIncomingMessage = exports.makeUpgradeHandler = exports.makeHandler = exports.make = exports.layerTest = exports.layerServer = exports.layerContext = exports.layerConfig = exports.layer = void 0;
var MultipartNode = _interopRequireWildcard(require("@effect/platform-node-shared/NodeMultipart"));

@@ -208,5 +208,7 @@ var Cookies = _interopRequireWildcard(require("@effect/platform/Cookies"));

exports.layerServer = layerServer;
const layer = (evaluate, options) => Layer.mergeAll(Layer.scoped(Server.HttpServer, make(evaluate, options)), internalPlatform.layer, Etag.layerWeak, NodeContext.layer);
const layer = (evaluate, options) => Layer.mergeAll(Layer.scoped(Server.HttpServer, make(evaluate, options)), layerContext);
/** @internal */
exports.layer = layer;
const layerContext = exports.layerContext = /*#__PURE__*/Layer.mergeAll(internalPlatform.layer, Etag.layerWeak, NodeContext.layer);
/** @internal */
const layerTest = exports.layerTest = /*#__PURE__*/Server.layerTestClient.pipe( /*#__PURE__*/Layer.provide(NodeHttpClient.layerWithoutAgent), /*#__PURE__*/Layer.provide( /*#__PURE__*/NodeHttpClient.makeAgentLayer({

@@ -213,0 +215,0 @@ keepAlive: false

@@ -6,3 +6,3 @@ "use strict";

});
exports.makeHandler = exports.make = exports.layerTest = exports.layerServer = exports.layerConfig = exports.layer = void 0;
exports.makeHandler = exports.make = exports.layerTest = exports.layerServer = exports.layerContext = exports.layerConfig = exports.layer = void 0;
var internal = _interopRequireWildcard(require("./internal/httpServer.js"));

@@ -55,2 +55,13 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }

const layerTest = exports.layerTest = internal.layerTest;
/**
* A Layer providing the `HttpPlatform`, `FileSystem`, `Etag.Generator`, and `Path`
* services.
*
* The `FileSystem` service is a no-op implementation, so this layer is only
* useful for platforms that have no file system.
*
* @since 1.0.0
* @category layers
*/
const layerContext = exports.layerContext = internal.layerContext;
//# sourceMappingURL=NodeHttpServer.js.map

@@ -76,2 +76,13 @@ /**

export declare const layerTest: Layer.Layer<HttpClient.HttpClient | Server.HttpServer | Platform.HttpPlatform | Etag.Generator | NodeContext.NodeContext, ServeError>;
/**
* A Layer providing the `HttpPlatform`, `FileSystem`, `Etag.Generator`, and `Path`
* services.
*
* The `FileSystem` service is a no-op implementation, so this layer is only
* useful for platforms that have no file system.
*
* @since 1.0.0
* @category layers
*/
export declare const layerContext: Layer.Layer<Platform.HttpPlatform | Etag.Generator | NodeContext.NodeContext>;
//# sourceMappingURL=NodeHttpServer.d.ts.map

@@ -195,4 +195,6 @@ import * as MultipartNode from "@effect/platform-node-shared/NodeMultipart";

/** @internal */
export const layer = (evaluate, options) => Layer.mergeAll(Layer.scoped(Server.HttpServer, make(evaluate, options)), internalPlatform.layer, Etag.layerWeak, NodeContext.layer);
export const layer = (evaluate, options) => Layer.mergeAll(Layer.scoped(Server.HttpServer, make(evaluate, options)), layerContext);
/** @internal */
export const layerContext = /*#__PURE__*/Layer.mergeAll(internalPlatform.layer, Etag.layerWeak, NodeContext.layer);
/** @internal */
export const layerTest = /*#__PURE__*/Server.layerTestClient.pipe( /*#__PURE__*/Layer.provide(NodeHttpClient.layerWithoutAgent), /*#__PURE__*/Layer.provide( /*#__PURE__*/NodeHttpClient.makeAgentLayer({

@@ -199,0 +201,0 @@ keepAlive: false

@@ -46,2 +46,13 @@ import * as internal from "./internal/httpServer.js";

export const layerTest = internal.layerTest;
/**
* A Layer providing the `HttpPlatform`, `FileSystem`, `Etag.Generator`, and `Path`
* services.
*
* The `FileSystem` service is a no-op implementation, so this layer is only
* useful for platforms that have no file system.
*
* @since 1.0.0
* @category layers
*/
export const layerContext = internal.layerContext;
//# sourceMappingURL=NodeHttpServer.js.map
{
"name": "@effect/platform-node",
"version": "0.64.0",
"version": "0.64.1",
"description": "Platform specific implementations for the Node.js runtime",

@@ -16,6 +16,6 @@ "license": "MIT",

"ws": "^8.18.0",
"@effect/platform-node-shared": "^0.19.0"
"@effect/platform-node-shared": "^0.19.1"
},
"peerDependencies": {
"@effect/platform": "^0.69.0",
"@effect/platform": "^0.69.1",
"effect": "^3.10.0"

@@ -22,0 +22,0 @@ },

@@ -331,8 +331,13 @@ import * as MultipartNode from "@effect/platform-node-shared/NodeMultipart"

Layer.scoped(Server.HttpServer, make(evaluate, options)),
internalPlatform.layer,
Etag.layerWeak,
NodeContext.layer
layerContext
)
/** @internal */
export const layerContext = Layer.mergeAll(
internalPlatform.layer,
Etag.layerWeak,
NodeContext.layer
)
/** @internal */
export const layerTest = Server.layerTestClient.pipe(

@@ -339,0 +344,0 @@ Layer.provide(NodeHttpClient.layerWithoutAgent),

@@ -121,1 +121,17 @@ /**

> = internal.layerTest
/**
* A Layer providing the `HttpPlatform`, `FileSystem`, `Etag.Generator`, and `Path`
* services.
*
* The `FileSystem` service is a no-op implementation, so this layer is only
* useful for platforms that have no file system.
*
* @since 1.0.0
* @category layers
*/
export const layerContext: Layer.Layer<
| Platform.HttpPlatform
| Etag.Generator
| NodeContext.NodeContext
> = internal.layerContext

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc