@lossless.org/objectstorage 9.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/ts/paths.ts ADDED
@@ -0,0 +1,11 @@
1
+ import * as plugins from './plugins.js';
2
+
3
+ export const packageDir = plugins.path.join(
4
+ plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
5
+ '../',
6
+ );
7
+ export const nogitDir = plugins.path.join(packageDir, './.nogit');
8
+
9
+ export const cwd = process.cwd();
10
+
11
+ export const bucketsDir = plugins.path.join(cwd, '.nogit/bucketsDir');
package/ts/plugins.ts ADDED
@@ -0,0 +1,17 @@
1
+ // node native
2
+ import * as crypto from 'crypto';
3
+ import * as fs from 'node:fs/promises';
4
+ import * as path from 'path';
5
+
6
+ export { crypto, fs, path };
7
+
8
+ // @push.rocks scope
9
+ import * as smartpath from '@push.rocks/smartpath';
10
+ import { RustBridge } from '@push.rocks/smartrust';
11
+
12
+ export { smartpath, RustBridge };
13
+
14
+ // @tsclass scope
15
+ import * as tsclass from '@tsclass/tsclass';
16
+
17
+ export { tsclass };