fp-ts-node
Advanced tools
Comparing version 4.3.0 to 4.4.0
@@ -6,3 +6,17 @@ /// <reference types="node" /> | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ close, } from "./fs/file-descriptor"; | ||
export { | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
access, | ||
/** | ||
* | ||
* @category Constructors | ||
* @since 3.0.0 | ||
@@ -15,8 +29,3 @@ */ | ||
*/ | ||
mkdir, | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
access, } from "./fs/path"; | ||
mkdir, } from "./fs/path"; | ||
export { | ||
@@ -50,9 +59,1 @@ /** | ||
export declare function chown(uid: number, gid: number): ReaderTaskNodeEither<fs.PathLike, void>; | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ | ||
export declare const close: ReaderTaskNodeEither<number, void>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.close = exports.chown = exports.chmod = exports.readFile = exports.appendFile = exports.access = exports.mkdir = exports.copyFile = void 0; | ||
exports.chown = exports.chmod = exports.readFile = exports.appendFile = exports.mkdir = exports.copyFile = exports.access = exports.close = void 0; | ||
/** | ||
@@ -29,5 +29,19 @@ * @since 2.0.0 | ||
var fs = __importStar(require("fs")); | ||
var file_descriptor_1 = require("./fs/file-descriptor"); | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ Object.defineProperty(exports, "close", { enumerable: true, get: function () { return file_descriptor_1.close; } }); | ||
var path_1 = require("./fs/path"); | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
Object.defineProperty(exports, "access", { enumerable: true, get: function () { return path_1.access; } }); | ||
/** | ||
* | ||
* @category Constructors | ||
* @since 3.0.0 | ||
@@ -41,7 +55,2 @@ */ | ||
Object.defineProperty(exports, "mkdir", { enumerable: true, get: function () { return path_1.mkdir; } }); | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
Object.defineProperty(exports, "access", { enumerable: true, get: function () { return path_1.access; } }); | ||
var _internal_1 = require("./fs/_internal"); | ||
@@ -85,9 +94,1 @@ /** | ||
exports.chown = chown; | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ | ||
exports.close = fp_ts_1.taskEither.taskify(fs.close); |
/// <reference types="node" /> | ||
/** | ||
* @since 4.3.0 | ||
*/ | ||
import { WriteFileOptions } from "fs"; | ||
@@ -10,5 +13,13 @@ import { FileDescriptor, ReaderTaskNodeEither } from "./types"; | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
export declare const close: ReaderTaskNodeEither<FileDescriptor, void>; | ||
/** | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
export declare const readFile: (options?: { | ||
@@ -15,0 +26,0 @@ flag?: string | undefined; |
@@ -22,4 +22,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readFile = exports.appendFile = void 0; | ||
exports.readFile = exports.close = exports.appendFile = void 0; | ||
var fs = __importStar(require("fs")); | ||
var internal = __importStar(require("./_internal")); | ||
var fp_ts_1 = require("fp-ts"); | ||
/** | ||
@@ -31,5 +33,13 @@ * @category Constructors | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
exports.close = fp_ts_1.taskEither.taskify(fs.close); | ||
/** | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
exports.readFile = internal.readFile; |
/// <reference types="node" /> | ||
/** | ||
* @since 4.3.0 | ||
*/ | ||
import { option as O } from "fp-ts"; | ||
@@ -3,0 +6,0 @@ import * as fs from "fs"; |
@@ -23,2 +23,5 @@ "use strict"; | ||
exports.mkdir = exports.copyFile = exports.appendFile = exports.readFile = exports.access = void 0; | ||
/** | ||
* @since 4.3.0 | ||
*/ | ||
var fp_ts_1 = require("fp-ts"); | ||
@@ -25,0 +28,0 @@ var function_1 = require("fp-ts/lib/function"); |
@@ -6,3 +6,17 @@ /// <reference types="node" /> | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ close, } from "./fs/file-descriptor"; | ||
export { | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
access, | ||
/** | ||
* | ||
* @category Constructors | ||
* @since 3.0.0 | ||
@@ -15,8 +29,3 @@ */ | ||
*/ | ||
mkdir, | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
access, } from "./fs/path"; | ||
mkdir, } from "./fs/path"; | ||
export { | ||
@@ -50,9 +59,1 @@ /** | ||
export declare function chown(uid: number, gid: number): ReaderTaskNodeEither<fs.PathLike, void>; | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ | ||
export declare const close: ReaderTaskNodeEither<number, void>; |
@@ -8,3 +8,17 @@ /** | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ close, } from "./fs/file-descriptor"; | ||
export { | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
access, | ||
/** | ||
* | ||
* @category Constructors | ||
* @since 3.0.0 | ||
@@ -17,8 +31,3 @@ */ | ||
*/ | ||
mkdir, | ||
/** | ||
* @category Constructors | ||
* @since 2.0.0 | ||
*/ | ||
access, } from "./fs/path"; | ||
mkdir, } from "./fs/path"; | ||
export { | ||
@@ -56,9 +65,1 @@ /** | ||
} | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 2.1.0 | ||
*/ | ||
export const close = TE.taskify(fs.close); |
/// <reference types="node" /> | ||
/** | ||
* @since 4.3.0 | ||
*/ | ||
import { WriteFileOptions } from "fs"; | ||
@@ -10,5 +13,13 @@ import { FileDescriptor, ReaderTaskNodeEither } from "./types"; | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
export declare const close: ReaderTaskNodeEither<FileDescriptor, void>; | ||
/** | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
export declare const readFile: (options?: { | ||
@@ -15,0 +26,0 @@ flag?: string | undefined; |
@@ -0,2 +1,4 @@ | ||
import * as fs from "fs"; | ||
import * as internal from "./_internal"; | ||
import { taskEither as TE } from "fp-ts"; | ||
/** | ||
@@ -8,5 +10,13 @@ * @category Constructors | ||
/** | ||
* Asynchronous close(2) - close a file descriptor. | ||
* @param fd A file descriptor. | ||
* | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
export const close = TE.taskify(fs.close); | ||
/** | ||
* @category Constructors | ||
* @since 4.4.0 | ||
*/ | ||
export const readFile = internal.readFile; |
/// <reference types="node" /> | ||
/** | ||
* @since 4.3.0 | ||
*/ | ||
import { option as O } from "fp-ts"; | ||
@@ -3,0 +6,0 @@ import * as fs from "fs"; |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @since 4.3.0 | ||
*/ | ||
import { option as O, taskEither as TE } from "fp-ts"; | ||
@@ -2,0 +5,0 @@ import { pipe } from "fp-ts/lib/function"; |
{ | ||
"name": "fp-ts-node", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"files": [ | ||
@@ -18,4 +18,5 @@ "dist" | ||
"scripts": { | ||
"test": "jest --passWithNoTests", | ||
"build": "npm-run-all --parallel build:*", | ||
"jest": "jest -c config/jest.config.ts", | ||
"test": "yarn jest --passWithNoTests", | ||
"build": "run-p build:*", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
@@ -22,0 +23,0 @@ "build:es6": "tsc -p tsconfig.es6.json", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51492
1074
9