@visulima/fs 2.3.7 → 3.0.0
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/CHANGELOG.md +31 -0
- package/README.md +1531 -1166
- package/dist/index.cjs +4 -12
- package/dist/index.d.cts +11 -24
- package/dist/index.d.mts +11 -24
- package/dist/index.d.ts +11 -24
- package/dist/index.mjs +4 -8
- package/dist/packem_shared/observable-like.d-BlD8q22s.d.cts +40 -0
- package/dist/packem_shared/observable-like.d-BlD8q22s.d.mjs +40 -0
- package/dist/packem_shared/observable-like.d-BlD8q22s.d.mts +40 -0
- package/dist/packem_shared/{observable-like.d-CJo2GVD9.d.cts → types-CiwAWOQj.d.cts} +1 -40
- package/dist/packem_shared/{observable-like.d-CJo2GVD9.d.mjs → types-CiwAWOQj.d.mjs} +1 -40
- package/dist/packem_shared/{observable-like.d-CJo2GVD9.d.mts → types-CiwAWOQj.d.mts} +1 -40
- package/dist/packem_shared/{writeFile-DKu5-M8x.cjs → writeFile-CnWc2ZOW.cjs} +3 -3
- package/dist/packem_shared/{writeFile-B7dhfseN.mjs → writeFile-CzpkxDqy.mjs} +3 -3
- package/dist/packem_shared/{writeFileSync-mMGYqOc8.mjs → writeFileSync-DYRpumrj.mjs} +3 -3
- package/dist/packem_shared/{writeFileSync-Db6pmY0q.cjs → writeFileSync-da4qD9Nz.cjs} +3 -3
- package/dist/packem_shared/{writeJson-DtnnjTix.cjs → writeJson-9_C3v2B3.cjs} +1 -1
- package/dist/packem_shared/{writeJson-BSQE2uFN.mjs → writeJson-V9KBXfw2.mjs} +1 -1
- package/dist/packem_shared/{writeJsonSync-Dz5-B2PD.cjs → writeJsonSync-C5kkxqE7.cjs} +1 -1
- package/dist/packem_shared/{writeJsonSync-C_i6LsGT.mjs → writeJsonSync-CyaXNy3X.mjs} +1 -1
- package/dist/packem_shared/{writeYaml-B-KoZN0E.cjs → writeYaml-DDLK7NDr.cjs} +1 -1
- package/dist/packem_shared/{writeYaml-DSTzKc0_.mjs → writeYaml-DJ17fqNj.mjs} +1 -1
- package/dist/packem_shared/{writeYamlSync-agxYIea0.mjs → writeYamlSync-C6nrcP2e.mjs} +1 -1
- package/dist/packem_shared/{writeYamlSync-D6borSP1.cjs → writeYamlSync-DST-W6N7.cjs} +1 -1
- package/dist/utils.d.cts +2 -1
- package/dist/utils.d.mts +2 -1
- package/dist/utils.d.ts +2 -1
- package/dist/yaml.cjs +15 -0
- package/dist/yaml.d.cts +19 -0
- package/dist/yaml.d.mts +19 -0
- package/dist/yaml.d.ts +19 -0
- package/dist/yaml.mjs +4 -0
- package/package.json +21 -73
|
@@ -20,6 +20,7 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
20
20
|
assertValidFileOrDirectoryPath(path);
|
|
21
21
|
assertValidFileContents(content);
|
|
22
22
|
path = toPath(path);
|
|
23
|
+
const temporaryPath = `${path}.tmp`;
|
|
23
24
|
try {
|
|
24
25
|
const pathExists = isAccessibleSync(path, F_OK);
|
|
25
26
|
if (!pathExists && options.recursive) {
|
|
@@ -29,7 +30,7 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
let stat;
|
|
32
|
-
writeFileSync$1(
|
|
33
|
+
writeFileSync$1(temporaryPath, toUint8Array(content), { encoding: options.encoding, flag: options.flag });
|
|
33
34
|
if (pathExists && !options.overwrite) {
|
|
34
35
|
stat = statSync(path);
|
|
35
36
|
if (options.chown === undefined) {
|
|
@@ -37,7 +38,6 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
37
38
|
}
|
|
38
39
|
renameSync(path, `${path}.bak`);
|
|
39
40
|
}
|
|
40
|
-
const temporaryPath = `${path}.tmp`;
|
|
41
41
|
if (options.chown) {
|
|
42
42
|
try {
|
|
43
43
|
chownSync(temporaryPath, options.chown.uid, options.chown.gid);
|
|
@@ -49,7 +49,7 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
49
49
|
} catch (error) {
|
|
50
50
|
throw new Error(`Failed to write file at: ${path} - ${error.message}`, { cause: error });
|
|
51
51
|
} finally {
|
|
52
|
-
if (isAccessibleSync(
|
|
52
|
+
if (isAccessibleSync(temporaryPath)) {
|
|
53
53
|
unlinkSync(`${path}.tmp`);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -22,6 +22,7 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
22
22
|
assertValidFileOrDirectoryPath(path$1);
|
|
23
23
|
assertValidFileContents(content);
|
|
24
24
|
path$1 = utils.toPath(path$1);
|
|
25
|
+
const temporaryPath = `${path$1}.tmp`;
|
|
25
26
|
try {
|
|
26
27
|
const pathExists = isAccessibleSync(path$1, F_OK.F_OK);
|
|
27
28
|
if (!pathExists && options.recursive) {
|
|
@@ -31,7 +32,7 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
let stat;
|
|
34
|
-
node_fs.writeFileSync(
|
|
35
|
+
node_fs.writeFileSync(temporaryPath, toUint8Array.toUint8Array(content), { encoding: options.encoding, flag: options.flag });
|
|
35
36
|
if (pathExists && !options.overwrite) {
|
|
36
37
|
stat = node_fs.statSync(path$1);
|
|
37
38
|
if (options.chown === undefined) {
|
|
@@ -39,7 +40,6 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
39
40
|
}
|
|
40
41
|
node_fs.renameSync(path$1, `${path$1}.bak`);
|
|
41
42
|
}
|
|
42
|
-
const temporaryPath = `${path$1}.tmp`;
|
|
43
43
|
if (options.chown) {
|
|
44
44
|
try {
|
|
45
45
|
node_fs.chownSync(temporaryPath, options.chown.uid, options.chown.gid);
|
|
@@ -51,7 +51,7 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
51
51
|
} catch (error) {
|
|
52
52
|
throw new Error(`Failed to write file at: ${path$1} - ${error.message}`, { cause: error });
|
|
53
53
|
} finally {
|
|
54
|
-
if (isAccessibleSync(
|
|
54
|
+
if (isAccessibleSync(temporaryPath)) {
|
|
55
55
|
node_fs.unlinkSync(`${path$1}.tmp`);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -4,7 +4,7 @@ const promises = require('node:fs/promises');
|
|
|
4
4
|
const index = require('./index-ngvEMjBI.cjs');
|
|
5
5
|
const F_OK = require('./F_OK-CWSqQIdF.cjs');
|
|
6
6
|
const isAccessible = require('./isAccessible-ZNVGsSb7.cjs');
|
|
7
|
-
const writeFile = require('./writeFile-
|
|
7
|
+
const writeFile = require('./writeFile-CnWc2ZOW.cjs');
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
2
2
|
import { d as detectIndent } from './index-ajT9ecry.mjs';
|
|
3
3
|
import { R_OK } from './F_OK-JER1LjUr.mjs';
|
|
4
4
|
import isAccessible from './isAccessible-Bonsm1Ez.mjs';
|
|
5
|
-
import writeFile from './writeFile-
|
|
5
|
+
import writeFile from './writeFile-CzpkxDqy.mjs';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -4,7 +4,7 @@ const node_fs = require('node:fs');
|
|
|
4
4
|
const index = require('./index-ngvEMjBI.cjs');
|
|
5
5
|
const F_OK = require('./F_OK-CWSqQIdF.cjs');
|
|
6
6
|
const isAccessibleSync = require('./isAccessibleSync-VWjQa-US.cjs');
|
|
7
|
-
const writeFileSync = require('./writeFileSync-
|
|
7
|
+
const writeFileSync = require('./writeFileSync-da4qD9Nz.cjs');
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
|
|
|
2
2
|
import { d as detectIndent } from './index-ajT9ecry.mjs';
|
|
3
3
|
import { R_OK } from './F_OK-JER1LjUr.mjs';
|
|
4
4
|
import isAccessibleSync from './isAccessibleSync-3gnUWUwX.mjs';
|
|
5
|
-
import writeFileSync from './writeFileSync-
|
|
5
|
+
import writeFileSync from './writeFileSync-DYRpumrj.mjs';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const yaml = require('yaml');
|
|
4
|
-
const writeFile = require('./writeFile-
|
|
4
|
+
const writeFile = require('./writeFile-CnWc2ZOW.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'yaml';
|
|
2
|
-
import writeFile from './writeFile-
|
|
2
|
+
import writeFile from './writeFile-CzpkxDqy.mjs';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'yaml';
|
|
2
|
-
import writeFileSync from './writeFileSync-
|
|
2
|
+
import writeFileSync from './writeFileSync-DYRpumrj.mjs';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const yaml = require('yaml');
|
|
4
|
-
const writeFileSync = require('./writeFileSync-
|
|
4
|
+
const writeFileSync = require('./writeFileSync-da4qD9Nz.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.cjs';
|
|
2
|
-
import { J as JsonValue
|
|
2
|
+
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.cjs';
|
|
3
|
+
import { p as CodeFrameOptions, J as JsonReviver } from './packem_shared/types-CiwAWOQj.cjs';
|
|
3
4
|
export { toPath } from '@visulima/path/utils';
|
|
4
5
|
import 'node:fs';
|
|
5
6
|
import 'yaml';
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.mjs';
|
|
2
|
-
import { J as JsonValue
|
|
2
|
+
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.mjs';
|
|
3
|
+
import { p as CodeFrameOptions, J as JsonReviver } from './packem_shared/types-CiwAWOQj.mjs';
|
|
3
4
|
export { toPath } from '@visulima/path/utils';
|
|
4
5
|
import 'node:fs';
|
|
5
6
|
import 'yaml';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.d.mjs';
|
|
2
|
-
import { J as JsonValue
|
|
2
|
+
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.d.mjs';
|
|
3
|
+
import { p as CodeFrameOptions, J as JsonReviver } from './packem_shared/types-CiwAWOQj.d.mjs';
|
|
3
4
|
export { toPath } from '@visulima/path/utils';
|
|
4
5
|
import 'node:fs';
|
|
5
6
|
import 'yaml';
|
package/dist/yaml.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const readYaml = require('./packem_shared/readYaml-sR4bqUel.cjs');
|
|
6
|
+
const readYamlSync = require('./packem_shared/readYamlSync-C3oOzxiN.cjs');
|
|
7
|
+
const writeYaml = require('./packem_shared/writeYaml-DDLK7NDr.cjs');
|
|
8
|
+
const writeYamlSync = require('./packem_shared/writeYamlSync-DST-W6N7.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.readYaml = readYaml;
|
|
13
|
+
exports.readYamlSync = readYamlSync;
|
|
14
|
+
exports.writeYaml = writeYaml;
|
|
15
|
+
exports.writeYamlSync = writeYamlSync;
|
package/dist/yaml.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { q as ReadYamlOptions, Y as YamlReviver, r as YamlReplacer } from './packem_shared/types-CiwAWOQj.cjs';
|
|
2
|
+
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
|
|
5
|
+
declare function readYaml<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): Promise<R>;
|
|
6
|
+
declare function readYaml<R = Record<string, unknown>>(path: URL | string, reviver?: YamlReviver, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): Promise<R>;
|
|
7
|
+
|
|
8
|
+
declare function readYamlSync<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): R;
|
|
9
|
+
declare function readYamlSync<R = Record<string, unknown>>(path: URL | string, reviver?: YamlReviver, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): R;
|
|
10
|
+
|
|
11
|
+
type Options$1 = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions;
|
|
12
|
+
declare function writeYaml(path: URL | string, data: any, options?: Options$1): Promise<void>;
|
|
13
|
+
declare function writeYaml(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options$1 | number | string): Promise<void>;
|
|
14
|
+
|
|
15
|
+
type Options = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions;
|
|
16
|
+
declare function writeYamlSync(path: URL | string, data: any, options?: Options): void;
|
|
17
|
+
declare function writeYamlSync(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options | number | string): void;
|
|
18
|
+
|
|
19
|
+
export { YamlReplacer, readYaml, readYamlSync, writeYaml, writeYamlSync };
|
package/dist/yaml.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { q as ReadYamlOptions, Y as YamlReviver, r as YamlReplacer } from './packem_shared/types-CiwAWOQj.mjs';
|
|
2
|
+
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
|
|
5
|
+
declare function readYaml<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): Promise<R>;
|
|
6
|
+
declare function readYaml<R = Record<string, unknown>>(path: URL | string, reviver?: YamlReviver, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): Promise<R>;
|
|
7
|
+
|
|
8
|
+
declare function readYamlSync<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): R;
|
|
9
|
+
declare function readYamlSync<R = Record<string, unknown>>(path: URL | string, reviver?: YamlReviver, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): R;
|
|
10
|
+
|
|
11
|
+
type Options$1 = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions;
|
|
12
|
+
declare function writeYaml(path: URL | string, data: any, options?: Options$1): Promise<void>;
|
|
13
|
+
declare function writeYaml(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options$1 | number | string): Promise<void>;
|
|
14
|
+
|
|
15
|
+
type Options = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions;
|
|
16
|
+
declare function writeYamlSync(path: URL | string, data: any, options?: Options): void;
|
|
17
|
+
declare function writeYamlSync(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options | number | string): void;
|
|
18
|
+
|
|
19
|
+
export { YamlReplacer, readYaml, readYamlSync, writeYaml, writeYamlSync };
|
package/dist/yaml.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { q as ReadYamlOptions, Y as YamlReviver, r as YamlReplacer } from './packem_shared/types-CiwAWOQj.d.mjs';
|
|
2
|
+
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
|
|
5
|
+
declare function readYaml<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): Promise<R>;
|
|
6
|
+
declare function readYaml<R = Record<string, unknown>>(path: URL | string, reviver?: YamlReviver, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): Promise<R>;
|
|
7
|
+
|
|
8
|
+
declare function readYamlSync<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): R;
|
|
9
|
+
declare function readYamlSync<R = Record<string, unknown>>(path: URL | string, reviver?: YamlReviver, options?: ReadYamlOptions<"brotli" | "gzip" | "none">): R;
|
|
10
|
+
|
|
11
|
+
type Options$1 = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions;
|
|
12
|
+
declare function writeYaml(path: URL | string, data: any, options?: Options$1): Promise<void>;
|
|
13
|
+
declare function writeYaml(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options$1 | number | string): Promise<void>;
|
|
14
|
+
|
|
15
|
+
type Options = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions;
|
|
16
|
+
declare function writeYamlSync(path: URL | string, data: any, options?: Options): void;
|
|
17
|
+
declare function writeYamlSync(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options | number | string): void;
|
|
18
|
+
|
|
19
|
+
export { YamlReplacer, readYaml, readYamlSync, writeYaml, writeYamlSync };
|
package/dist/yaml.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as readYaml } from './packem_shared/readYaml-vVKK8ZzY.mjs';
|
|
2
|
+
export { default as readYamlSync } from './packem_shared/readYamlSync-MOLH4gXB.mjs';
|
|
3
|
+
export { default as writeYaml } from './packem_shared/writeYaml-DJ17fqNj.mjs';
|
|
4
|
+
export { default as writeYamlSync } from './packem_shared/writeYamlSync-C6nrcP2e.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/fs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Human friendly file system utilities for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -107,6 +107,16 @@
|
|
|
107
107
|
"default": "./dist/error.mjs"
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
+
"./yaml": {
|
|
111
|
+
"require": {
|
|
112
|
+
"types": "./dist/yaml.d.cts",
|
|
113
|
+
"default": "./dist/yaml.cjs"
|
|
114
|
+
},
|
|
115
|
+
"import": {
|
|
116
|
+
"types": "./dist/yaml.d.mts",
|
|
117
|
+
"default": "./dist/yaml.mjs"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
110
120
|
"./package.json": "./package.json"
|
|
111
121
|
},
|
|
112
122
|
"main": "dist/index.cjs",
|
|
@@ -122,6 +132,9 @@
|
|
|
122
132
|
],
|
|
123
133
|
"error": [
|
|
124
134
|
"./dist/error.d.ts"
|
|
135
|
+
],
|
|
136
|
+
"yaml": [
|
|
137
|
+
"./dist/yaml.d.ts"
|
|
125
138
|
]
|
|
126
139
|
}
|
|
127
140
|
},
|
|
@@ -132,46 +145,15 @@
|
|
|
132
145
|
"LICENSE.md"
|
|
133
146
|
],
|
|
134
147
|
"dependencies": {
|
|
135
|
-
"@visulima/path": "1.3.3"
|
|
148
|
+
"@visulima/path": "1.3.3"
|
|
149
|
+
},
|
|
150
|
+
"peerDependencies": {
|
|
136
151
|
"yaml": "^2.7.0"
|
|
137
152
|
},
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"@anolilab/semantic-release-preset": "^9.0.3",
|
|
143
|
-
"@arethetypeswrong/cli": "^0.17.2",
|
|
144
|
-
"@babel/core": "^7.26.0",
|
|
145
|
-
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
146
|
-
"@types/node": "18.19.15",
|
|
147
|
-
"@visulima/error": "4.4.13",
|
|
148
|
-
"@visulima/packem": "1.10.7",
|
|
149
|
-
"@vitest/coverage-v8": "^2.1.8",
|
|
150
|
-
"@vitest/ui": "^2.1.8",
|
|
151
|
-
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
152
|
-
"cross-env": "^7.0.3",
|
|
153
|
-
"detect-indent": "^7.0.1",
|
|
154
|
-
"esbuild": "0.24.2",
|
|
155
|
-
"eslint": "8.57.0",
|
|
156
|
-
"eslint-plugin-deprecation": "^3.0.0",
|
|
157
|
-
"eslint-plugin-etc": "^2.0.3",
|
|
158
|
-
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
|
159
|
-
"eslint-plugin-mdx": "^3.1.5",
|
|
160
|
-
"eslint-plugin-vitest": "^0.5.4",
|
|
161
|
-
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
162
|
-
"fast-safe-stringify": "2.1.1",
|
|
163
|
-
"prettier": "^3.4.2",
|
|
164
|
-
"redos-detector": "^6.1.2",
|
|
165
|
-
"rimraf": "6.0.1",
|
|
166
|
-
"safe-regex2": "^4.0.1",
|
|
167
|
-
"semantic-release": "24.2.1",
|
|
168
|
-
"tempy": "^3.1.0",
|
|
169
|
-
"type-fest": "^4.32.0",
|
|
170
|
-
"typedoc": "0.27.6",
|
|
171
|
-
"typedoc-plugin-markdown": "4.4.1",
|
|
172
|
-
"typedoc-plugin-rename-defaults": "0.7.2",
|
|
173
|
-
"typescript": "5.7.3",
|
|
174
|
-
"vitest": "^2.1.8"
|
|
153
|
+
"peerDependenciesMeta": {
|
|
154
|
+
"yaml": {
|
|
155
|
+
"optional": true
|
|
156
|
+
}
|
|
175
157
|
},
|
|
176
158
|
"engines": {
|
|
177
159
|
"node": ">=18.* <=23.*"
|
|
@@ -184,39 +166,5 @@
|
|
|
184
166
|
"publishConfig": {
|
|
185
167
|
"access": "public",
|
|
186
168
|
"provenance": true
|
|
187
|
-
},
|
|
188
|
-
"anolilab": {
|
|
189
|
-
"eslint-config": {
|
|
190
|
-
"plugin": {
|
|
191
|
-
"tsdoc": false
|
|
192
|
-
},
|
|
193
|
-
"warn_on_unsupported_typescript_version": false,
|
|
194
|
-
"info_on_disabling_jsx_react_rule": false,
|
|
195
|
-
"info_on_disabling_prettier_conflict_rule": false,
|
|
196
|
-
"info_on_disabling_jsonc_sort_keys_rule": false,
|
|
197
|
-
"info_on_disabling_etc_no_deprecated": false
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"sources": [
|
|
201
|
-
"src/index.ts",
|
|
202
|
-
"src/error.ts",
|
|
203
|
-
"src/utils.ts"
|
|
204
|
-
],
|
|
205
|
-
"scripts": {
|
|
206
|
-
"build": "cross-env NODE_ENV=development packem build",
|
|
207
|
-
"build:prod": "cross-env NODE_ENV=production packem build",
|
|
208
|
-
"clean": "rimraf node_modules dist .eslintcache",
|
|
209
|
-
"dev": "pnpm run build --watch",
|
|
210
|
-
"lint:attw": "attw --pack",
|
|
211
|
-
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
212
|
-
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
|
|
213
|
-
"lint:package-json": "publint --strict",
|
|
214
|
-
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
|
215
|
-
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
216
|
-
"lint:types": "tsc --noEmit",
|
|
217
|
-
"test": "vitest run",
|
|
218
|
-
"test:coverage": "vitest run --coverage",
|
|
219
|
-
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
220
|
-
"test:watch": "vitest"
|
|
221
169
|
}
|
|
222
170
|
}
|