@feasibleone/blong-gogo 1.19.0 → 1.19.1

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.19.1](https://github.com/feasibleone/blong/compare/blong-gogo-v1.19.0...blong-gogo-v1.19.1) (2026-05-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * improve model and mock ([20b530c](https://github.com/feasibleone/blong/commit/20b530cc9d00284a52ad99b63b95fbb7bd4e4e82))
9
+
3
10
  ## [1.19.0](https://github.com/feasibleone/blong/compare/blong-gogo-v1.18.1...blong-gogo-v1.19.0) (2026-04-29)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feasibleone/blong-gogo",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/feasibleone/blong.git"
6
6
  },
package/src/load.ts CHANGED
@@ -21,7 +21,6 @@ import {Type, type TSchema} from 'typebox';
21
21
  import merge from 'ut-function.merge';
22
22
  import {methodParts} from './lib.ts';
23
23
 
24
- import minimist from 'minimist';
25
24
  import ConfigRuntime from './ConfigRuntime.ts';
26
25
  import layerProxy from './layerProxy.ts';
27
26
  import RealmImpl, {type IRealm} from './Realm.ts';
@@ -189,16 +188,15 @@ interface IConstructor {
189
188
  new (config?: object, api?: object): object;
190
189
  }
191
190
 
192
- const argConfigs = minimist(process.argv.slice(2))._;
193
-
194
191
  function activeConfigs<T extends TSchema>(
195
192
  mod: IModuleConfig<T>,
196
193
  configNames: string[],
194
+ platformConfigs: string[],
197
195
  ): (boolean | object)[] {
198
196
  return (
199
197
  (['default'] as string[])
200
198
  .concat(configNames)
201
- .concat(argConfigs)
199
+ .concat(platformConfigs)
202
200
  .map(name => (mod.config as unknown as Record<string, unknown>)?.[name])
203
201
  .filter(Boolean) as (boolean | object)[]
204
202
  ).concat({pkg: mod.pkg, children: mod.children, url: mod.url});
@@ -502,7 +500,7 @@ export default async function loadRealm<T extends TSchema>(
502
500
  return fn;
503
501
  });
504
502
  }
505
- loadedConfigs.push(...activeConfigs(mod, configNames));
503
+ loadedConfigs.push(...activeConfigs(mod, configNames, platformApi.configs));
506
504
  const {loadedConfig, configRuntime} = await platformApi.loadConfig(parentConfig);
507
505
  if (loadedConfig) loadedConfigs.push(loadedConfig);
508
506
 
@@ -11,8 +11,8 @@ declare global {
11
11
  }
12
12
  }
13
13
 
14
- var performance = globalThis.performance || {};
15
- var performanceNow =
14
+ const performance = globalThis.performance || {};
15
+ const performanceNow =
16
16
  performance.now ||
17
17
  performance.mozNow ||
18
18
  performance.msNow ||
@@ -25,9 +25,9 @@ var performanceNow =
25
25
  // generate timestamp or delta
26
26
  // see http://nodejs.org/api/process.html#process_process_hrtime
27
27
  function hrtime(previousTimestamp?: HRTime): HRTime {
28
- var clocktime = performanceNow.call(performance) * 1e-3;
29
- var seconds = Math.floor(clocktime);
30
- var nanoseconds = Math.floor((clocktime % 1) * 1e9);
28
+ const clockTime = performanceNow.call(performance) * 1e-3;
29
+ let seconds = Math.floor(clockTime);
30
+ let nanoseconds = Math.floor((clockTime % 1) * 1e9);
31
31
  if (previousTimestamp) {
32
32
  seconds = seconds - previousTimestamp[0];
33
33
  nanoseconds = nanoseconds - previousTimestamp[1];
@@ -79,4 +79,5 @@ export default load.bind(null, {
79
79
  },
80
80
  statSync: (() => undefined) as unknown as import('node:fs').StatSyncFn,
81
81
  timing: timing(hrtime),
82
+ configs: ['browser'],
82
83
  });
package/src/loadServer.ts CHANGED
@@ -2,6 +2,7 @@ import {watch} from 'chokidar';
2
2
  import type {Dirent} from 'fs';
3
3
  import {existsSync, readFileSync, statSync, writeFileSync} from 'fs';
4
4
  import {readdir} from 'fs/promises';
5
+ import minimist from 'minimist';
5
6
  import {createRequire} from 'node:module';
6
7
  import {hrtime} from 'node:process';
7
8
  import {basename, dirname, extname, join, relative, resolve} from 'path';
@@ -45,4 +46,5 @@ export default load.bind(null, {
45
46
  statSync,
46
47
  watch,
47
48
  timing: timing(hrtime),
49
+ configs: ['server', ...minimist(process.argv.slice(2))._],
48
50
  });