@effect/platform-node 0.13.13 → 0.13.15

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @since 1.0.0
3
+ *
4
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
5
+ */
6
+ import * as Layer from "@effect/io/Layer";
7
+ import type * as PlatformError from "@effect/platform/Error";
8
+ import * as KeyValueStore from "@effect/platform/KeyValueStore";
9
+ export * from "@effect/platform/KeyValueStore";
10
+ /**
11
+ * @since 1.0.0
12
+ * @category layers
13
+ */
14
+ export declare const layerFileSystem: (directory: string) => Layer.Layer<never, PlatformError.PlatformError, KeyValueStore.KeyValueStore>;
15
+ //# sourceMappingURL=KeyValueStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueStore.d.ts","sourceRoot":"","sources":["./src/KeyValueStore.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAGzC,OAAO,KAAK,KAAK,aAAa,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,aAAa,MAAM,gCAAgC,CAAA;AAE/D,cAAc,gCAAgC,CAAA;AAE9C;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,CAC5B,SAAS,EAAE,MAAM,KACd,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,aAAa,CAI7E,CAAA"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ layerFileSystem: true
8
+ };
9
+ exports.layerFileSystem = void 0;
10
+ var Layer = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/Layer"));
11
+ var FileSystem = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform-node/FileSystem"));
12
+ var Path = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform-node/Path"));
13
+ var KeyValueStore = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/platform/KeyValueStore"));
14
+ Object.keys(KeyValueStore).forEach(function (key) {
15
+ if (key === "default" || key === "__esModule") return;
16
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
17
+ if (key in exports && exports[key] === KeyValueStore[key]) return;
18
+ Object.defineProperty(exports, key, {
19
+ enumerable: true,
20
+ get: function () {
21
+ return KeyValueStore[key];
22
+ }
23
+ });
24
+ });
25
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+ /**
28
+ * @since 1.0.0
29
+ *
30
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
31
+ */
32
+
33
+ /**
34
+ * @since 1.0.0
35
+ * @category layers
36
+ */
37
+ const layerFileSystem = directory => Layer.provide(Layer.merge(FileSystem.layer, Path.layer), KeyValueStore.layerFileSystem(directory));
38
+ exports.layerFileSystem = layerFileSystem;
39
+ //# sourceMappingURL=KeyValueStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueStore.js","names":["Layer","_interopRequireWildcard","require","FileSystem","Path","KeyValueStore","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","layerFileSystem","directory","provide","merge","layer"],"sources":["./src/KeyValueStore.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;AAKA,IAAAA,KAAA,gBAAAC,uBAAA,eAAAC,OAAA;AACA,IAAAC,UAAA,gBAAAF,uBAAA,eAAAC,OAAA;AACA,IAAAE,IAAA,gBAAAH,uBAAA,eAAAC,OAAA;AAEA,IAAAG,aAAA,gBAAAJ,uBAAA,eAAAC,OAAA;AAEAI,MAAA,CAAAC,IAAA,CAAAF,aAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,aAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,aAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAA8C,SAAAS,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,S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 * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
5
+ */
6
+ import * as Layer from "@effect/io/Layer";
7
+ import * as FileSystem from "@effect/platform-node/FileSystem";
8
+ import * as Path from "@effect/platform-node/Path";
9
+ import * as KeyValueStore from "@effect/platform/KeyValueStore";
10
+ export * from "@effect/platform/KeyValueStore";
11
+ /**
12
+ * @since 1.0.0
13
+ * @category layers
14
+ */
15
+ export const layerFileSystem = directory => Layer.provide(Layer.merge(FileSystem.layer, Path.layer), KeyValueStore.layerFileSystem(directory));
16
+ //# sourceMappingURL=KeyValueStore.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueStore.mjs","names":["Layer","FileSystem","Path","KeyValueStore","layerFileSystem","directory","provide","merge","layer"],"sources":["../src/KeyValueStore.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;AAKA,OAAO,KAAKA,KAAK,MAAM,kBAAkB;AACzC,OAAO,KAAKC,UAAU,MAAM,kCAAkC;AAC9D,OAAO,KAAKC,IAAI,MAAM,4BAA4B;AAElD,OAAO,KAAKC,aAAa,MAAM,gCAAgC;AAE/D,cAAc,gCAAgC;AAE9C;;;;AAIA,OAAO,MAAMC,eAAe,GAEyDC,SAAiB,IACpGL,KAAK,CAACM,OAAO,CACXN,KAAK,CAACO,KAAK,CAACN,UAAU,CAACO,KAAK,EAAEN,IAAI,CAACM,KAAK,CAAC,EACzCL,aAAa,CAACC,eAAe,CAACC,SAAS,CAAC,CACzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/platform-node",
3
- "version": "0.13.13",
3
+ "version": "0.13.15",
4
4
  "description": "Unified interfaces for common platform-specific services",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,6 +31,6 @@
31
31
  "@effect/data": "^0.17.5",
32
32
  "@effect/io": "^0.38.2",
33
33
  "@effect/stream": "^0.34.0",
34
- "@effect/platform": "^0.13.13"
34
+ "@effect/platform": "^0.13.14"
35
35
  }
36
36
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ *
4
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
5
+ */
6
+ import * as Layer from "@effect/io/Layer"
7
+ import * as FileSystem from "@effect/platform-node/FileSystem"
8
+ import * as Path from "@effect/platform-node/Path"
9
+ import type * as PlatformError from "@effect/platform/Error"
10
+ import * as KeyValueStore from "@effect/platform/KeyValueStore"
11
+
12
+ export * from "@effect/platform/KeyValueStore"
13
+
14
+ /**
15
+ * @since 1.0.0
16
+ * @category layers
17
+ */
18
+ export const layerFileSystem: (
19
+ directory: string
20
+ ) => Layer.Layer<never, PlatformError.PlatformError, KeyValueStore.KeyValueStore> = (directory: string) =>
21
+ Layer.provide(
22
+ Layer.merge(FileSystem.layer, Path.layer),
23
+ KeyValueStore.layerFileSystem(directory)
24
+ )