New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

code-engine-destination-filesystem

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-engine-destination-filesystem - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

lib/config.d.ts
/// <reference types="node" />
import { Filter } from "@code-engine/types";
import { MakeDirectoryOptions, NoParamCallback } from "fs";
import { MakeDirectoryOptions, NoParamCallback, WriteFileOptions } from "fs";
/**

@@ -38,3 +38,3 @@ * Configuration for the fileystem destination plugin.

*/
writeFile(path: string, data: Buffer, options: object, callback: NoParamCallback): void;
writeFile(path: string, data: Buffer, options: WriteFileOptions, callback: NoParamCallback): void;
}
/// <reference types="node" />
import * as nodeFS from "fs";
import { MakeDirectoryOptions, WriteFileOptions } from "fs";
import { FS } from "./config";

@@ -9,5 +9,5 @@ /**

promises: {
mkdir(path: string, option: nodeFS.MakeDirectoryOptions): Promise<void>;
writeFile(path: string, data: Buffer, options: object): Promise<void>;
mkdir(path: string, option: MakeDirectoryOptions): Promise<void>;
writeFile(path: string, data: Buffer, options: WriteFileOptions): Promise<void>;
};
}

@@ -27,3 +27,3 @@ "use strict";

// Try to write the file
await fs.promises.writeFile(path, contents, { mode: "w" });
await fs.promises.writeFile(path, contents, { flag: "w" });
}

@@ -30,0 +30,0 @@ catch (e) {

{
"name": "code-engine-destination-filesystem",
"version": "0.0.2",
"version": "0.0.3",
"description": "A CodeEngine plugin that reads files from the filesystem",

@@ -49,6 +49,6 @@ "keywords": [

"@types/mocha": "^5.2.7",
"@types/node": "^12.12.12",
"@types/node": "^12.12.14",
"chai": "^4.2.0",
"coveralls": "^3.0.8",
"eslint": "^6.7.0",
"eslint": "^6.7.1",
"eslint-config-modular": "^7.0.0",

@@ -58,2 +58,3 @@ "mocha": "^6.2.2",

"nyc": "^14.1.1",
"readdir-enhanced": "^5.1.1",
"shx": "^0.3.2",

@@ -60,0 +61,0 @@ "sinon": "^7.5.0",

Sorry, the diff of this file is not supported yet

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