1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
"name": "@firebase/database-compat",
"version": "2.1.0",
"description": "The Realtime Database component of the Firebase JS SDK.",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.js",
"browser": "dist/index.esm.js",
"module": "dist/index.esm.js",
"license": "Apache-2.0",
"typings": "dist/database-compat/src/index.d.ts",
"files": [
"dist",
"standalone/package.json"
],
"exports": {
".": {
"types": "./dist/database-compat/src/index.d.ts",
"node": {
"types": "./dist/database-compat/src/index.node.d.ts",
"import": "./dist/node-esm/index.js",
"require": "./dist/index.js"
},
"browser": {
"require": "./dist/index.js",
"import": "./dist/index.esm.js"
},
"default": "./dist/index.esm.js"
},
"./standalone": {
"types": "./dist/database-compat/src/index.standalone.d.ts",
"node": "./dist/index.standalone.js",
"default": "./dist/index.standalone.js"
},
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
"prettier": "prettier --write '*.js' '*.ts' '@(src|test)/**/*.ts'",
"build": "rollup -c rollup.config.js",
"build:release": "yarn build && yarn add-compat-overloads",
"build:deps": "lerna run --scope @firebase/database-compat --include-dependencies build",
"dev": "rollup -c -w",
"test": "run-p --npm-path npm lint test:browser test:node",
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test",
"test:browser": "karma start",
"test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
"add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../database/dist/public.d.ts -o dist/database-compat/src/index.d.ts -a -r Database:types.FirebaseDatabase -r Query:types.Query -r DatabaseReference:types.Reference -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/database"
},
"dependencies": {
"@firebase/database": "1.1.0",
"@firebase/database-types": "1.0.16",
"@firebase/logger": "0.5.0",
"@firebase/util": "1.13.0",
"@firebase/component": "0.7.0",
"tslib": "^2.1.0"
},
"devDependencies": {
"@firebase/app-compat": "0.5.0",
"typescript": "5.5.4"
},
"repository": {
"directory": "packages/database-compat",
"type": "git",
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
},
"bugs": {
"url": "https://github.com/firebase/firebase-js-sdk/issues"
},
"engines": {
"node": ">=20.0.0"
}
}
|