@fncts/io 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ import { Scope } from "@fncts/io/Scope/definition";
2
+ import { IO } from "@fncts/io/IO/definition";
3
+ /**
4
+ * @tsplus pipeable fncts.io.IO provideScope
5
+ * @tsplus location "@fncts/io/IO/api/provideScope"
6
+ */
7
+ export declare function provideScope(scope: Scope): <R, E, A>(self: import("../definition").IO<R, E, A>) => import("../definition").IO<Exclude<R, import("../../Scope").Scope>, E, A>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.provideScope = provideScope;
7
+ var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Scope/definition"));
8
+ var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
9
+ 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); }
10
+ 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; }
11
+ const fileName_1 = "(@fncts/io) src/IO/api/provideScope.ts";
12
+ /**
13
+ * @tsplus pipeable fncts.io.IO provideScope
14
+ */
15
+ function provideScope(scope) {
16
+ return self => {
17
+ return tsplus_module_2.provideSomeService(scope, tsplus_module_1.ScopeTag, fileName_1 + ":6:35")(self);
18
+ };
19
+ }
20
+ //# sourceMappingURL=provideScope.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provideScope.cjs","mappings":";;;;;;;;;;;AAAA;;;AAGM,SAAUA,YAAY,CAACC,KAAY;EACvC,OAAiBC,IAAiB,IAAiC;IACjE,OAAOC,mCAAwBF,KAAK,kDAA7BC,IAAI,CAAqC;EAClD,CAAC;AACH","names":["provideScope","scope","self","tsplus_module_2"],"sourceRoot":"","sources":["../../../_src/IO/api/provideScope.ts"],"sourcesContent":[null]}
@@ -0,0 +1,12 @@
1
+ const fileName_1 = "(@fncts/io) src/IO/api/provideScope.ts";
2
+ import * as tsplus_module_1 from "@fncts/io/Scope/definition";
3
+ import * as tsplus_module_2 from "@fncts/io/IO/api/environment";
4
+ /**
5
+ * @tsplus pipeable fncts.io.IO provideScope
6
+ */
7
+ export function provideScope(scope) {
8
+ return self => {
9
+ return tsplus_module_2.provideSomeService(scope, tsplus_module_1.ScopeTag, fileName_1 + ":6:35")(self);
10
+ };
11
+ }
12
+ //# sourceMappingURL=provideScope.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provideScope.mjs","mappings":";;;AAAA;;;AAGA,OAAM,SAAUA,YAAY,CAACC,KAAY;EACvC,OAAiBC,IAAiB,IAAiC;IACjE,OAAOC,mCAAwBF,KAAK,kDAA7BC,IAAI,CAAqC;EAClD,CAAC;AACH","names":["provideScope","scope","self","tsplus_module_2"],"sourceRoot":"","sources":["../../../_src/IO/api/provideScope.ts"],"sourcesContent":[null]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @tsplus pipeable fncts.io.IO provideScope
3
+ */
4
+ export function provideScope(scope: Scope) {
5
+ return <R, E, A>(self: IO<R, E, A>): IO<Exclude<R, Scope>, E, A> => {
6
+ return self.provideSomeService(scope, Scope.Tag);
7
+ };
8
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@fncts/io",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "dependencies": {
5
- "@fncts/base": "0.0.24",
5
+ "@fncts/base": "0.0.25",
6
6
  "@fncts/transformers": "0.0.4",
7
7
  "@fncts/typelevel": "0.0.15"
8
8
  },