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

@randlabs/js-config-reader

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@randlabs/js-config-reader - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

src/modules.d.ts

4

lib/index.js

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

const ajv_1 = __importDefault(require("ajv"));
const ajv_formats_draft2019_1 = __importDefault(require("ajv-formats-draft2019"));
const fs_1 = __importDefault(require("fs"));

@@ -101,2 +102,3 @@ const json5_1 = __importDefault(require("json5"));

});
ajv_formats_draft2019_1.default(ajv);
const validate = ajv.compile(schema);

@@ -116,6 +118,6 @@ if (!validate(settings)) {

}
settingsSource = source;
if (options.extendedValidator) {
await options.extendedValidator(settings);
}
settingsSource = source;
return settings;

@@ -122,0 +124,0 @@ }

{
"name": "@randlabs/js-config-reader",
"version": "1.0.0",
"version": "1.0.1",
"description": "Configuration settings loader",

@@ -33,14 +33,15 @@ "main": "lib/index.js",

"@types/json5": "0.0.30",
"ajv": "^6.12.4",
"ajv": "^6.12.5",
"ajv-formats-draft2019": "^1.4.3",
"json5": "^2.1.3"
},
"devDependencies": {
"@types/node": "^14.6.4",
"@types/node": "^14.11.2",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"ava": "^3.12.1",
"eslint": "^7.8.1",
"ava": "^3.13.0",
"eslint": "^7.10.0",
"rimraf": "^3.0.2",
"typescript": "^4.0.2"
"typescript": "^4.0.3"
}
}
import Ajv from "ajv";
import avjDraft2019 from "ajv-formats-draft2019";
import fs from "fs";

@@ -164,2 +165,3 @@ import JSON5 from "json5";

});
avjDraft2019(ajv);
const validate = ajv.compile(schema);

@@ -183,2 +185,4 @@

settingsSource = source;
if (options.extendedValidator) {

@@ -188,4 +192,2 @@ await options.extendedValidator(settings as S);

settingsSource = source;
//done

@@ -192,0 +194,0 @@ return settings as S;

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc