@effect/platform-browser 0.14.2 → 0.14.3

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.
@@ -83,10 +83,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner__namespace.PlatformRunner.of({
83
83
  });
84
84
 
85
85
  /** @internal */
86
- const layer = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
86
+ const layer$1 = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
87
87
 
88
88
  /** @internal */
89
- const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer);
89
+ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer$1);
90
90
 
91
91
  /**
92
92
  * @since 1.0.0
@@ -100,6 +100,13 @@ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace
100
100
  */
101
101
  const make = make$1;
102
102
 
103
+ /**
104
+ * @since 1.0.0
105
+ * @category layers
106
+ */
107
+ const layer = layer$1;
108
+
109
+ exports.layer = layer;
103
110
  exports.make = make;
104
111
  Object.keys(Runner).forEach(function (k) {
105
112
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
@@ -83,10 +83,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner__namespace.PlatformRunner.of({
83
83
  });
84
84
 
85
85
  /** @internal */
86
- const layer = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
86
+ const layer$1 = /*#__PURE__*/Layer__namespace.succeed(Runner__namespace.PlatformRunner, platformRunnerImpl);
87
87
 
88
88
  /** @internal */
89
- const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer);
89
+ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace.make(process, options), layer$1);
90
90
 
91
91
  /**
92
92
  * @since 1.0.0
@@ -100,6 +100,13 @@ const make$1 = (process, options) => Effect__namespace.provide(Runner__namespace
100
100
  */
101
101
  const make = make$1;
102
102
 
103
+ /**
104
+ * @since 1.0.0
105
+ * @category layers
106
+ */
107
+ const layer = layer$1;
108
+
109
+ exports.layer = layer;
103
110
  exports.make = make;
104
111
  Object.keys(Runner).forEach(function (k) {
105
112
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
@@ -57,10 +57,10 @@ const platformRunnerImpl = /*#__PURE__*/Runner.PlatformRunner.of({
57
57
  });
58
58
 
59
59
  /** @internal */
60
- const layer = /*#__PURE__*/Layer.succeed(Runner.PlatformRunner, platformRunnerImpl);
60
+ const layer$1 = /*#__PURE__*/Layer.succeed(Runner.PlatformRunner, platformRunnerImpl);
61
61
 
62
62
  /** @internal */
63
- const make$1 = (process, options) => Effect.provide(Runner.make(process, options), layer);
63
+ const make$1 = (process, options) => Effect.provide(Runner.make(process, options), layer$1);
64
64
 
65
65
  /**
66
66
  * @since 1.0.0
@@ -74,4 +74,10 @@ const make$1 = (process, options) => Effect.provide(Runner.make(process, options
74
74
  */
75
75
  const make = make$1;
76
76
 
77
- export { make };
77
+ /**
78
+ * @since 1.0.0
79
+ * @category layers
80
+ */
81
+ const layer = layer$1;
82
+
83
+ export { layer, make };
@@ -6,6 +6,7 @@
6
6
  import type { WorkerError } from "@effect/platform/WorkerError";
7
7
  import type * as Runner from "@effect/platform/WorkerRunner";
8
8
  import type { Effect } from "effect";
9
+ import type * as Layer from "effect/Layer";
9
10
  import type * as Scope from "effect/Scope";
10
11
  import type * as Stream from "effect/Stream";
11
12
  /**
@@ -17,4 +18,9 @@ export * from "@effect/platform/WorkerRunner";
17
18
  * @category constructors
18
19
  */
19
20
  export declare const make: <I, R, E, O>(process: (request: I) => Stream.Stream<R, E, O>, options?: Runner.Runner.Options<O> | undefined) => Effect.Effect<R | Scope.Scope, WorkerError, void>;
21
+ /**
22
+ * @since 1.0.0
23
+ * @category layers
24
+ */
25
+ export declare const layer: Layer.Layer<never, never, Runner.PlatformRunner>;
20
26
  //# sourceMappingURL=WorkerRunner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkerRunner.d.ts","sourceRoot":"../../../src","sources":["WorkerRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAG5C;;GAEG;AACH,cAAc,+BAA+B,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,KAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAiB,CAAA"}
1
+ {"version":3,"file":"WorkerRunner.d.ts","sourceRoot":"../../../src","sources":["WorkerRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAG5C;;GAEG;AACH,cAAc,+BAA+B,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,KAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAiB,CAAA;AAEtE;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,cAAc,CAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/platform-browser",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "Unified interfaces for common platform-specific services",
5
5
  "main": "dist/effect-platform-browser.cjs.js",
6
6
  "module": "dist/effect-platform-browser.esm.js",
@@ -6,6 +6,7 @@
6
6
  import type { WorkerError } from "@effect/platform/WorkerError"
7
7
  import type * as Runner from "@effect/platform/WorkerRunner"
8
8
  import type { Effect } from "effect"
9
+ import type * as Layer from "effect/Layer"
9
10
  import type * as Scope from "effect/Scope"
10
11
  import type * as Stream from "effect/Stream"
11
12
  import * as internal from "./internal/workerRunner"
@@ -23,3 +24,9 @@ export const make: <I, R, E, O>(
23
24
  process: (request: I) => Stream.Stream<R, E, O>,
24
25
  options?: Runner.Runner.Options<O> | undefined
25
26
  ) => Effect.Effect<R | Scope.Scope, WorkerError, void> = internal.make
27
+
28
+ /**
29
+ * @since 1.0.0
30
+ * @category layers
31
+ */
32
+ export const layer: Layer.Layer<never, never, Runner.PlatformRunner> = internal.layer