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

@wocker/core

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wocker/core - npm Package Compare versions

Comparing version 1.0.19-dev.1 to 1.0.19-dev.2

1

lib/services/PluginConfigService.d.ts

@@ -5,2 +5,3 @@ import { WriteFileOptions, MakeDirectoryOptions, RmOptions, WriteStream, ReadStream } from "fs";

protected readonly pluginDir: string;
protected _fs?: FileSystem;
constructor(pluginDir: string);

@@ -7,0 +8,0 @@ get fs(): FileSystem;

16

lib/services/PluginConfigService.js

@@ -33,10 +33,12 @@ "use strict";

get fs() {
if (!this.pluginDir) {
throw new Error("Plugin dir missed");
if (!this._fs) {
if (!this.pluginDir) {
throw new Error("Plugin dir missed");
}
this._fs = new makes_1.FileSystem(this.pluginDir);
if (!this._fs.exists()) {
this._fs.mkdir();
}
}
const fs = new makes_1.FileSystem(this.pluginDir);
if (!fs.exists()) {
fs.mkdir();
}
return fs;
return this._fs;
}

@@ -43,0 +45,0 @@ /** @deprecated */

{
"name": "@wocker/core",
"version": "1.0.19-dev.1",
"version": "1.0.19-dev.2",
"author": "Kris Papercut <krispcut@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Core of the Wocker",

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