@xyo-network/archivist-firebase 5.1.21 → 5.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-firebase",
3
- "version": "5.1.21",
3
+ "version": "5.1.23",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,18 +30,21 @@
30
30
  "types": "dist/browser/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src"
33
+ "src",
34
+ "!**/*.bench.*",
35
+ "!**/*.spec.*",
36
+ "!**/*.test.*"
34
37
  ],
35
38
  "dependencies": {
36
- "@firebase/app": "~0.14.5",
39
+ "@firebase/app": "~0.14.6",
37
40
  "@firebase/firestore": "~4.9.2",
38
- "@xylabs/assert": "~5.0.24",
39
- "@xylabs/exists": "~5.0.24",
40
- "@xylabs/hex": "~5.0.24",
41
- "@xyo-network/archivist-abstract": "~5.1.21",
42
- "@xyo-network/archivist-model": "~5.1.21",
43
- "@xyo-network/module-model": "~5.1.21",
44
- "@xyo-network/payload-model": "~5.1.21"
41
+ "@xylabs/assert": "~5.0.33",
42
+ "@xylabs/exists": "~5.0.33",
43
+ "@xylabs/hex": "~5.0.33",
44
+ "@xyo-network/archivist-abstract": "~5.1.23",
45
+ "@xyo-network/archivist-model": "~5.1.23",
46
+ "@xyo-network/module-model": "~5.1.23",
47
+ "@xyo-network/payload-model": "~5.1.23"
45
48
  },
46
49
  "devDependencies": {
47
50
  "@firebase/rules-unit-testing": "~5.0.0",
@@ -49,7 +52,7 @@
49
52
  "@xylabs/tsconfig": "~7.2.8",
50
53
  "firebase": "~12.5.0",
51
54
  "typescript": "~5.9.3",
52
- "vitest": "~4.0.8"
55
+ "vitest": "~4.0.9"
53
56
  },
54
57
  "publishConfig": {
55
58
  "access": "public"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Archivist.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Archivist.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/Archivist.spec.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- import fs from 'node:fs'
2
-
3
- import type { RulesTestEnvironment } from '@firebase/rules-unit-testing'
4
- import { initializeTestEnvironment } from '@firebase/rules-unit-testing'
5
- import {
6
- afterAll,
7
- beforeAll, expect, test,
8
- } from 'vitest'
9
-
10
- import { FirebaseArchivist } from '../Archivist.ts'
11
- import { FirebaseArchivistConfigSchema } from '../Config.ts'
12
-
13
- let testEnv: RulesTestEnvironment
14
-
15
- beforeAll(async () => {
16
- // Initialize the test environment with the Firestore emulator
17
- testEnv = await initializeTestEnvironment({
18
- projectId: 'test-project', // Specify your project ID
19
- firestore: {
20
- rules: fs.readFileSync(
21
- 'packages/modules/packages/archivist/packages/firebase/src/spec/firestore.rules',
22
- 'utf8',
23
- ),
24
- }, // Load Firestore security rules
25
- })
26
- })
27
-
28
- test.skip('FirebaseArchivist Load', async () => {
29
- const firebaseApp = testEnv.authenticatedContext('test')
30
- const db = firebaseApp.firestore()
31
- db.useEmulator('localhost', 8080)
32
-
33
- const archivist = (await FirebaseArchivist.create({
34
- account: 'random',
35
- config: { schema: FirebaseArchivistConfigSchema },
36
- })) as FirebaseArchivist
37
- const all = await archivist.all()
38
- expect(all.length).toBe(4)
39
- })
40
-
41
- afterAll(async () => {
42
- // Clean up the test environment
43
- await testEnv?.cleanup()
44
- })