inibase 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/file.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/file.js
CHANGED
|
@@ -425,7 +425,7 @@ export const prepend = async (filePath, data) => {
|
|
|
425
425
|
transform(line, _, callback) {
|
|
426
426
|
if (!isAppended) {
|
|
427
427
|
isAppended = true;
|
|
428
|
-
return callback(null, `${Array.isArray(data) ? data.join("\n") : data}\n${
|
|
428
|
+
return callback(null, `${Array.isArray(data) ? data.join("\n") : data}\n${`${line}\n`}`);
|
|
429
429
|
}
|
|
430
430
|
return callback(null, `${line}\n`);
|
|
431
431
|
},
|
package/dist/index.js
CHANGED
|
@@ -544,7 +544,7 @@ export default class Inibase {
|
|
|
544
544
|
const RETURN = {};
|
|
545
545
|
for (const [key, value] of Object.entries(data)) {
|
|
546
546
|
if (Utils.isObject(value))
|
|
547
|
-
Object.assign(RETURN, this._CombineData(value, `${key}.`));
|
|
547
|
+
Object.assign(RETURN, this._CombineData(value, `${(prefix ?? "") + key}.`));
|
|
548
548
|
else if (Utils.isArrayOfObjects(value)) {
|
|
549
549
|
Object.assign(RETURN, this._CombineData(this._combineObjectsToArray(value), `${(prefix ?? "") + key}.`));
|
|
550
550
|
}
|