You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

rc9

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc9 - npm Package Compare versions

Comparing version
2.1.0
to
2.1.1
+9
-4
dist/index.cjs

@@ -10,2 +10,7 @@ 'use strict';

function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
const destr__default = /*#__PURE__*/_interopDefaultCompat(destr);
const flat__default = /*#__PURE__*/_interopDefaultCompat(flat);
const RE_KEY_VAL = /^\s*([^\s=]+)\s*=\s*(.*)?\s*$/;

@@ -36,3 +41,3 @@ const RE_LINES = /\n|\r|\r\n/;

}
const value = destr(
const value = destr__default(
match[2].trim()

@@ -48,3 +53,3 @@ /* val */

}
return options.flat ? config : flat.unflatten(config, { overwrite: true });
return options.flat ? config : flat__default.unflatten(config, { overwrite: true });
}

@@ -67,3 +72,3 @@ function parseFile(path, options) {

function serialize(config) {
return Object.entries(flat.flatten(config)).map(
return Object.entries(flat__default.flatten(config)).map(
([key, value]) => `${key}=${typeof value === "string" ? value : JSON.stringify(value)}`

@@ -86,3 +91,3 @@ ).join("\n");

if (!options.flat) {
config = flat.unflatten(config, { overwrite: true });
config = flat__default.unflatten(config, { overwrite: true });
}

@@ -89,0 +94,0 @@ const newConfig = defu.defu(config, read(options));

{
"name": "rc9",
"version": "2.1.0",
"version": "2.1.1",
"description": "Read/Write config couldn't be easier!",

@@ -29,3 +29,3 @@ "repository": "unjs/rc9",

"defu": "^6.1.2",
"destr": "^1.2.2",
"destr": "^2.0.0",
"flat": "^5.0.2"

@@ -35,13 +35,13 @@ },

"@types/flat": "^5.0.2",
"@types/node": "^18.15.11",
"@vitest/coverage-c8": "^0.29.8",
"changelogen": "^0.5.2",
"eslint": "^8.37.0",
"eslint-config-unjs": "^0.1.0",
"prettier": "^2.8.7",
"typescript": "^5.0.2",
"unbuild": "^1.1.2",
"vitest": "^0.29.8"
"@types/node": "^20.3.1",
"@vitest/coverage-v8": "^0.32.2",
"changelogen": "^0.5.3",
"eslint": "^8.43.0",
"eslint-config-unjs": "^0.2.1",
"prettier": "^2.8.8",
"typescript": "^5.1.3",
"unbuild": "^1.2.1",
"vitest": "^0.32.2"
},
"packageManager": "pnpm@8.0.0"
"packageManager": "pnpm@8.5.1"
}

@@ -151,3 +151,3 @@ # RC9

[github-actions-src]: https://img.shields.io/github/workflow/status/unjs/rc9/ci/main?style=flat-square
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/rc9/ci.yml?branch=main&style=flat-square
[github-actions-href]: https://github.com/unjs/rc9/actions?query=workflow%3Aci

@@ -154,0 +154,0 @@