@moneko/core 4.5.8-beta.0 → 4.5.8-beta.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.
@@ -1,9 +1,12 @@
1
- // import { Volume } from '@jsonjoy.com/fs-node';
2
1
  import { type FsPromisesApi, toUnixTimestamp, Volume } from '@jsonjoy.com/fs-node';
3
2
  export interface IFs extends Volume {
4
3
  _toUnixTimestamp: typeof toUnixTimestamp;
5
4
  __vol: Volume;
6
5
  promises: FsPromisesApi;
6
+ F_OK: number;
7
+ R_OK: number;
8
+ W_OK: number;
9
+ X_OK: number;
7
10
  }
8
11
  export declare function createFsFromVolume(vol: Volume): IFs;
9
12
  export declare const outputFileSystem: IFs;
@@ -1 +1 @@
1
- import{constants as t}from"node:fs";import{Dirent as e,fsCallbackApiList as a,fsSynchronousApiList as n,Stats as o,toUnixTimestamp as r,Volume as i}from"@jsonjoy.com/fs-node";let{F_OK:p,R_OK:c,W_OK:f,X_OK:l}=t;export function createFsFromVolume(i){let m={F_OK:p,R_OK:c,W_OK:f,X_OK:l,constants:t,Stats:o,Dirent:e};for(let t of n)"function"==typeof i[t]&&Object.assign(m,{method:i[t].bind(i)});for(let t of a)"function"==typeof i[t]&&Object.assign(m,{method:i[t].bind(i)});return m.StatWatcher=i.StatWatcher,m.FSWatcher=i.FSWatcher,m.WriteStream=i.WriteStream,m.ReadStream=i.ReadStream,m.promises=i.promises,"function"==typeof i.realpath&&(m.realpath=i.realpath.bind(i),"function"==typeof i.realpath.native&&(m.realpath.native=i.realpath.native.bind(i))),"function"==typeof i.realpathSync&&(m.realpathSync=i.realpathSync.bind(i),"function"==typeof i.realpathSync.native&&(m.realpathSync.native=i.realpathSync.native.bind(i))),m._toUnixTimestamp=r,m.__vol=i,m}let m=new i;export const outputFileSystem=createFsFromVolume(m);
1
+ import{constants as t}from"node:fs";import{Dirent as e,fsCallbackApiList as a,fsSynchronousApiList as n,Stats as o,toUnixTimestamp as r,Volume as i}from"@jsonjoy.com/fs-node";export function createFsFromVolume(i){let{F_OK:p,R_OK:c,W_OK:f,X_OK:l}=t,m={F_OK:p,R_OK:c,W_OK:f,X_OK:l,constants:t,Stats:o,Dirent:e};for(let t of n)"function"==typeof i[t]&&Object.assign(m,{[t]:i[t].bind(i)});for(let t of a)"function"==typeof i[t]&&Object.assign(m,{[t]:i[t].bind(i)});return m.StatWatcher=i.StatWatcher,m.FSWatcher=i.FSWatcher,m.WriteStream=i.WriteStream,m.ReadStream=i.ReadStream,m.promises=i.promises,"function"==typeof i.realpath&&(m.realpath=i.realpath.bind(i),"function"==typeof i.realpath.native&&(m.realpath.native=i.realpath.native.bind(i))),"function"==typeof i.realpathSync&&(m.realpathSync=i.realpathSync.bind(i),"function"==typeof i.realpathSync.native&&(m.realpathSync.native=i.realpathSync.native.bind(i))),m._toUnixTimestamp=r,m.__vol=i,m}let p=new i;export const outputFileSystem=createFsFromVolume(p);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "4.5.8-beta.0",
3
+ "version": "4.5.8-beta.1",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",