Socket
Socket
Sign inDemoInstall

sock-daemon

Package Overview
Dependencies
30
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.1 to 1.4.2

6

dist/commonjs/client.js

@@ -7,3 +7,2 @@ "use strict";

const promises_1 = require("fs/promises");
const mkdirp_1 = require("mkdirp");
const net_1 = require("net");

@@ -336,3 +335,6 @@ const path_1 = require("path");

async #connect() {
await Promise.all([(0, mkdirp_1.mkdirp)(this.#path), this.#checkMtime()]);
await Promise.all([
(0, promises_1.mkdir)(this.#path, { recursive: true }),
this.#checkMtime(),
]);
this.#reader = new socket_post_message_1.Reader();

@@ -339,0 +341,0 @@ const connection = (0, net_1.connect)(this.#socket, () => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SockDaemonServer = void 0;
const mkdirp_1 = require("mkdirp");
const node_fs_1 = require("node:fs");

@@ -170,3 +169,3 @@ const promises_1 = require("node:fs/promises");

async listen() {
await (0, mkdirp_1.mkdirp)(this.#path);
await (0, promises_1.mkdir)(this.#path, { recursive: true });
try {

@@ -173,0 +172,0 @@ await this.#startingLock.acquire();

import { spawn } from 'child_process';
import { constants, openSync } from 'fs';
import { readFile, stat, unlink } from 'fs/promises';
import { mkdirp } from 'mkdirp';
import { mkdir, readFile, stat, unlink } from 'fs/promises';
import { connect } from 'net';

@@ -331,3 +330,6 @@ import { resolve } from 'path';

async #connect() {
await Promise.all([mkdirp(this.#path), this.#checkMtime()]);
await Promise.all([
mkdir(this.#path, { recursive: true }),
this.#checkMtime(),
]);
this.#reader = new Reader();

@@ -334,0 +336,0 @@ const connection = connect(this.#socket, () => {

@@ -1,4 +0,3 @@

import { mkdirp } from 'mkdirp';
import { unlinkSync } from 'node:fs';
import { readFile, stat, unlink, writeFile } from 'node:fs/promises';
import { mkdir, readFile, stat, unlink, writeFile } from 'node:fs/promises';
import { connect, createServer } from 'node:net';

@@ -167,3 +166,3 @@ import { resolve } from 'node:path';

async listen() {
await mkdirp(this.#path);
await mkdir(this.#path, { recursive: true });
try {

@@ -170,0 +169,0 @@ await this.#startingLock.acquire();

{
"name": "sock-daemon",
"version": "1.4.1",
"version": "1.4.2",
"license": "BlueOak-1.0.0",

@@ -9,3 +9,2 @@ "files": [

"dependencies": {
"mkdirp": "^3.0.1",
"rimraf": "^5.0.5",

@@ -93,3 +92,6 @@ "signal-exit": "^4.1.0",

"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts"
"types": "./dist/commonjs/index.d.ts",
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc