Comparing version 12.0.0 to 13.0.0
@@ -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" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45747
697
+ Addedajv-formats@3.0.1(transitive)
+ Addeddebounce-fn@6.0.0(transitive)
+ Addeddot-prop@9.0.0(transitive)
+ Addedmimic-function@5.0.1(transitive)
+ Addedtype-fest@4.26.1(transitive)
+ Addeduint8array-extras@1.4.0(transitive)
- Removedajv-formats@2.1.1(transitive)
- Removeddebounce-fn@5.1.2(transitive)
- Removeddot-prop@8.0.2(transitive)
- Removedmimic-fn@4.0.0(transitive)
- Removedtype-fest@3.13.1(transitive)
- Removeduint8array-extras@0.3.0(transitive)
Updatedajv@^8.16.0
Updatedajv-formats@^3.0.1
Updatedatomically@^2.0.3
Updateddebounce-fn@^6.0.0
Updateddot-prop@^9.0.0
Updatedsemver@^7.6.2
Updateduint8array-extras@^1.1.0