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

@effect/platform

Package Overview
Dependencies
Maintainers
0
Versions
399
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/platform - npm Package Compare versions

Comparing version 0.58.6 to 0.58.7

10

dist/cjs/internal/httpRouter.js

@@ -345,2 +345,3 @@ "use strict";

function TagClass() {}
const TagClass_ = TagClass;
Object.setPrototypeOf(TagClass, Object.getPrototypeOf(Context.GenericTag(id)));

@@ -353,6 +354,7 @@ TagClass.key = id;

});
TagClass.Live = Layer.sync(TagClass, makeService);
TagClass.router = Effect.flatMap(TagClass, _ => _.router);
TagClass.use = f => Layer.effectDiscard(Effect.flatMap(TagClass, f)).pipe(Layer.provide(TagClass.Live));
TagClass.useScoped = f => Layer.scopedDiscard(Effect.flatMap(TagClass, f)).pipe(Layer.provide(TagClass.Live));
TagClass_.Live = Layer.sync(TagClass_, makeService);
TagClass_.router = Effect.flatMap(TagClass_, _ => _.router);
TagClass_.use = f => Layer.effectDiscard(Effect.flatMap(TagClass_, f)).pipe(Layer.provide(TagClass_.Live));
TagClass_.useScoped = f => TagClass_.pipe(Effect.flatMap(f), Layer.scopedDiscard, Layer.provide(TagClass_.Live));
TagClass_.unwrap = f => TagClass_.pipe(Effect.flatMap(_ => _.router), Effect.map(f), Layer.unwrapEffect, Layer.provide(TagClass_.Live));
return TagClass;

@@ -359,0 +361,0 @@ };

1

dist/dts/HttpRouter.d.ts

@@ -96,2 +96,3 @@ /**

readonly useScoped: <XA, XE, XR>(f: (router: Service<E, R>) => Effect.Effect<XA, XE, XR>) => Layer.Layer<never, XE, Exclude<XR, Scope.Scope>>;
readonly unwrap: <XA, XE, XR>(f: (router: HttpRouter<E, R>) => Layer.Layer<XA, XE, XR>) => Layer.Layer<XA, XE, XR>;
}

@@ -98,0 +99,0 @@ }

@@ -307,2 +307,3 @@ import * as Schema from "@effect/schema/Schema";

function TagClass() {}
const TagClass_ = TagClass;
Object.setPrototypeOf(TagClass, Object.getPrototypeOf(Context.GenericTag(id)));

@@ -315,8 +316,9 @@ TagClass.key = id;

});
TagClass.Live = Layer.sync(TagClass, makeService);
TagClass.router = Effect.flatMap(TagClass, _ => _.router);
TagClass.use = f => Layer.effectDiscard(Effect.flatMap(TagClass, f)).pipe(Layer.provide(TagClass.Live));
TagClass.useScoped = f => Layer.scopedDiscard(Effect.flatMap(TagClass, f)).pipe(Layer.provide(TagClass.Live));
TagClass_.Live = Layer.sync(TagClass_, makeService);
TagClass_.router = Effect.flatMap(TagClass_, _ => _.router);
TagClass_.use = f => Layer.effectDiscard(Effect.flatMap(TagClass_, f)).pipe(Layer.provide(TagClass_.Live));
TagClass_.useScoped = f => TagClass_.pipe(Effect.flatMap(f), Layer.scopedDiscard, Layer.provide(TagClass_.Live));
TagClass_.unwrap = f => TagClass_.pipe(Effect.flatMap(_ => _.router), Effect.map(f), Layer.unwrapEffect, Layer.provide(TagClass_.Live));
return TagClass;
};
//# sourceMappingURL=httpRouter.js.map
{
"name": "@effect/platform",
"version": "0.58.6",
"version": "0.58.7",
"description": "Unified interfaces for common platform-specific services",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -126,2 +126,3 @@ /**

) => Layer.Layer<never, XE, Exclude<XR, Scope.Scope>>
readonly unwrap: <XA, XE, XR>(f: (router: HttpRouter<E, R>) => Layer.Layer<XA, XE, XR>) => Layer.Layer<XA, XE, XR>
}

@@ -128,0 +129,0 @@ }

@@ -15,2 +15,3 @@ import type { ParseOptions } from "@effect/schema/AST"

import * as Tracer from "effect/Tracer"
import type { Mutable } from "effect/Types"
import * as FindMyWay from "find-my-way-ts"

@@ -727,2 +728,3 @@ import type * as App from "../HttpApp.js"

function TagClass() {}
const TagClass_ = TagClass as any as Mutable<Router.HttpRouter.TagClass<Self, Name, E, R>>
Object.setPrototypeOf(TagClass, Object.getPrototypeOf(Context.GenericTag<Self, any>(id)))

@@ -735,13 +737,22 @@ TagClass.key = id

})
TagClass.Live = Layer.sync(TagClass as any, makeService)
TagClass.router = Effect.flatMap(TagClass as any, (_: any) => _.router)
TagClass.use = (f: any) =>
Layer.effectDiscard(Effect.flatMap(TagClass as any, f)).pipe(
Layer.provide(TagClass.Live)
TagClass_.Live = Layer.sync(TagClass_, makeService)
TagClass_.router = Effect.flatMap(TagClass_, (_) => _.router)
TagClass_.use = (f) =>
Layer.effectDiscard(Effect.flatMap(TagClass_, f)).pipe(
Layer.provide(TagClass_.Live)
)
TagClass.useScoped = (f: any) =>
Layer.scopedDiscard(Effect.flatMap(TagClass as any, f)).pipe(
Layer.provide(TagClass.Live)
TagClass_.useScoped = (f) =>
TagClass_.pipe(
Effect.flatMap(f),
Layer.scopedDiscard,
Layer.provide(TagClass_.Live)
)
TagClass_.unwrap = (f) =>
TagClass_.pipe(
Effect.flatMap((_) => _.router),
Effect.map(f),
Layer.unwrapEffect,
Layer.provide(TagClass_.Live)
)
return TagClass as any
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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