confstash 0.1.0 → 0.1.2

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/esm/index.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export { defaultSearchPlaces, findConfigSync, findUpDir, type FoundConfig } from './discover';
10
10
  export { expandExtends, type ExtendsContext } from './extends';
11
- export { createConfigLoader, defineConfig, type ConfigLoader } from './loader';
11
+ export { type ConfigLoader, createConfigLoader, defineConfig } from './loader';
12
12
  export { ConfigLoadError, loadFile, loadFileSync } from './loaders';
13
13
  export { deepMerge, explainLayers, mergeLayers } from './merge';
14
14
  export type { ArrayMergeStrategy, ConfigLayer, ConfigLoaderOptions, ExplainedValue, LayerSource, LoadParams, LoadResult, SearchPlace } from './types';
package/esm/loader.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { appstash, resolve as stashResolve } from 'appstash';
1
2
  import * as fs from 'fs';
2
3
  import * as path from 'path';
3
- import { appstash, resolve as stashResolve } from 'appstash';
4
4
  import { defaultSearchPlaces, findConfigSync } from './discover';
5
5
  import { expandExtends } from './extends';
6
6
  import { loadFile, loadFileSync } from './loaders';
package/esm/loaders.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as fs from 'fs';
2
- import * as path from 'path';
3
2
  import yaml from 'js-yaml';
3
+ import * as path from 'path';
4
4
  export class ConfigLoadError extends Error {
5
5
  filepath;
6
6
  cause;
@@ -78,7 +78,6 @@ function isEsmRequireError(err) {
78
78
  function requireModule(filepath) {
79
79
  try {
80
80
  delete require.cache[require.resolve(filepath)];
81
- // eslint-disable-next-line @typescript-eslint/no-var-requires
82
81
  const mod = require(filepath);
83
82
  return asObject(mod?.default ?? mod, filepath, 'module config');
84
83
  }
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export { defaultSearchPlaces, findConfigSync, findUpDir, type FoundConfig } from './discover';
10
10
  export { expandExtends, type ExtendsContext } from './extends';
11
- export { createConfigLoader, defineConfig, type ConfigLoader } from './loader';
11
+ export { type ConfigLoader, createConfigLoader, defineConfig } from './loader';
12
12
  export { ConfigLoadError, loadFile, loadFileSync } from './loaders';
13
13
  export { deepMerge, explainLayers, mergeLayers } from './merge';
14
14
  export type { ArrayMergeStrategy, ConfigLayer, ConfigLoaderOptions, ExplainedValue, LayerSource, LoadParams, LoadResult, SearchPlace } from './types';
package/loader.js CHANGED
@@ -35,9 +35,9 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.createConfigLoader = createConfigLoader;
37
37
  exports.defineConfig = defineConfig;
38
+ const appstash_1 = require("appstash");
38
39
  const fs = __importStar(require("fs"));
39
40
  const path = __importStar(require("path"));
40
- const appstash_1 = require("appstash");
41
41
  const discover_1 = require("./discover");
42
42
  const extends_1 = require("./extends");
43
43
  const loaders_1 = require("./loaders");
package/loaders.js CHANGED
@@ -40,8 +40,8 @@ exports.ConfigLoadError = void 0;
40
40
  exports.loadFileSync = loadFileSync;
41
41
  exports.loadFile = loadFile;
42
42
  const fs = __importStar(require("fs"));
43
- const path = __importStar(require("path"));
44
43
  const js_yaml_1 = __importDefault(require("js-yaml"));
44
+ const path = __importStar(require("path"));
45
45
  class ConfigLoadError extends Error {
46
46
  filepath;
47
47
  cause;
@@ -120,7 +120,6 @@ function isEsmRequireError(err) {
120
120
  function requireModule(filepath) {
121
121
  try {
122
122
  delete require.cache[require.resolve(filepath)];
123
- // eslint-disable-next-line @typescript-eslint/no-var-requires
124
123
  const mod = require(filepath);
125
124
  return asObject(mod?.default ?? mod, filepath, 'module config');
126
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "confstash",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Standardized project configuration loading — config files, rc files, presets, and layered merge with provenance",
6
6
  "main": "index.js",
@@ -29,7 +29,7 @@
29
29
  "test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "appstash": "0.7.0",
32
+ "appstash": "0.8.0",
33
33
  "js-yaml": "^4.1.0"
34
34
  },
35
35
  "devDependencies": {
@@ -47,5 +47,5 @@
47
47
  "loader",
48
48
  "cli"
49
49
  ],
50
- "gitHead": "8a788f355703ecb6abe9d5926940f7682502ee34"
50
+ "gitHead": "9ae46e62fa96a289374cff253e3528108d7f4d61"
51
51
  }