Socket
Socket
Sign inDemoInstall

conf

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conf - npm Package Compare versions

Comparing version 12.0.0 to 13.0.0

2

dist/source/index.d.ts

@@ -55,3 +55,3 @@ /// <reference types="node" resolution-mode="require"/>

@param key - The key wo watch.
@param key - The key to watch.
@param callback - A callback function that is called on any changes. When a `key` is first set `oldValue` will be `undefined`, and when a key is deleted `newValue` will be `undefined`.

@@ -58,0 +58,0 @@ @returns A function, that when called, will unsubscribe.

@@ -8,6 +8,6 @@ /* eslint-disable @typescript-eslint/naming-convention, @typescript-eslint/no-unsafe-return */

import assert from 'node:assert';
import { getProperty, hasProperty, setProperty, deleteProperty } from 'dot-prop';
import { getProperty, hasProperty, setProperty, deleteProperty, } from 'dot-prop';
import envPaths from 'env-paths';
import { writeFileSync as atomicWriteFileSync } from 'atomically';
import AjvModule from 'ajv';
import { Ajv2020 as Ajv } from 'ajv/dist/2020.js';
import ajvFormatsModule from 'ajv-formats';

@@ -18,3 +18,2 @@ import debounceFn from 'debounce-fn';

// FIXME: https://github.com/ajv-validator/ajv/issues/2047
const Ajv = AjvModule.default;
const ajvFormats = ajvFormatsModule.default;

@@ -204,3 +203,3 @@ const encryptionAlgorithm = 'aes-256-cbc';

@param key - The key wo watch.
@param key - The key to watch.
@param callback - A callback function that is called on any changes. When a `key` is first set `oldValue` will be `undefined`, and when a key is deleted `newValue` will be `undefined`.

@@ -270,3 +269,3 @@ @returns A function, that when called, will unsubscribe.

const initializationVector = data.slice(0, 16);
const password = crypto.pbkdf2Sync(this.#encryptionKey, initializationVector.toString(), 10000, 32, 'sha512');
const password = crypto.pbkdf2Sync(this.#encryptionKey, initializationVector.toString(), 10_000, 32, 'sha512');
const decipher = crypto.createDecipheriv(encryptionAlgorithm, password, initializationVector);

@@ -318,3 +317,3 @@ const slice = data.slice(17);

const initializationVector = crypto.randomBytes(16);
const password = crypto.pbkdf2Sync(this.#encryptionKey, initializationVector.toString(), 10000, 32, 'sha512');
const password = crypto.pbkdf2Sync(this.#encryptionKey, initializationVector.toString(), 10_000, 32, 'sha512');
const cipher = crypto.createCipheriv(encryptionAlgorithm, password, initializationVector);

@@ -321,0 +320,0 @@ data = concatUint8Arrays([initializationVector, stringToUint8Array(':'), cipher.update(stringToUint8Array(data)), cipher.final()]);

{
"name": "conf",
"version": "12.0.0",
"version": "13.0.0",
"description": "Simple config handling for your app or module",

@@ -18,6 +18,6 @@ "license": "MIT",

},
"sideEffects": false,
"engines": {
"node": ">=18"
},
"sideEffects": false,
"scripts": {

@@ -51,26 +51,26 @@ "test": "xo && npm run build && ava",

"dependencies": {
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"atomically": "^2.0.2",
"debounce-fn": "^5.1.2",
"dot-prop": "^8.0.2",
"ajv": "^8.16.0",
"ajv-formats": "^3.0.1",
"atomically": "^2.0.3",
"debounce-fn": "^6.0.0",
"dot-prop": "^9.0.0",
"env-paths": "^3.0.0",
"json-schema-typed": "^8.0.1",
"semver": "^7.5.4",
"uint8array-extras": "^0.3.0"
"semver": "^7.6.2",
"uint8array-extras": "^1.1.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^5.0.0",
"@types/node": "^20.8.8",
"@types/semver": "^7.5.4",
"ava": "^5.3.1",
"@types/node": "^20.14.2",
"@types/semver": "^7.5.8",
"ava": "^6.1.3",
"del": "^7.1.0",
"del-cli": "^5.1.0",
"delay": "^6.0.0",
"p-event": "^6.0.0",
"p-event": "^6.0.1",
"tempy": "^3.1.0",
"ts-node": "^10.9.1",
"tsd": "^0.29.0",
"typescript": "^5.2.2",
"xo": "^0.56.0"
"ts-node": "^10.9.2",
"tsd": "^0.31.0",
"typescript": "^5.4.5",
"xo": "^0.58.0"
},

@@ -88,9 +88,11 @@ "ava": {

"--loader=ts-node/esm"
]
],
"workerThreads": false
},
"xo": {
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
"@typescript-eslint/ban-ts-comment": "off",
"unicorn/prevent-abbreviations": "off"
}
}
}
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