abstracted-firebase
Advanced tools
Comparing version 0.0.4 to 0.1.0
import * as admin from "firebase-admin"; | ||
import * as client from "@firebase/database"; | ||
import * as client from "@firebase/database-types"; | ||
import { SerializedQuery } from "serialized-query"; | ||
@@ -7,3 +7,3 @@ import { Mock, Reference } from "firemock"; | ||
export declare type Query = admin.database.Query | client.Query; | ||
export declare type Database = admin.database.Database | client.Database; | ||
export declare type Database = admin.database.Database | client.FirebaseDatabase; | ||
export declare type DataSnapshot = admin.database.DataSnapshot | client.DataSnapshot; | ||
@@ -10,0 +10,0 @@ export declare enum FirebaseBoolean { |
@@ -28,2 +28,6 @@ "use strict"; | ||
this._allowMocking = false; | ||
if (config.mocking) { | ||
this._mocking = true; | ||
this._mock = new firemock_1.Mock(); | ||
} | ||
} | ||
@@ -30,0 +34,0 @@ ref(path) { |
import { RealTimeDB } from "./db"; | ||
export default RealTimeDB; | ||
export { RealTimeDB, IFirebaseConfig, IFirebaseListener, FirebaseBoolean, DataSnapshot, Query, Reference, DebuggingCallback } from "./db"; | ||
export { RealTimeDB, IFirebaseConfig, IFirebaseListener, FirebaseBoolean, DataSnapshot, Query, Reference, Database, DebuggingCallback } from "./db"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function slashNotation(path) { | ||
return path.replace(/\./g, '/'); | ||
return path.substr(0, 5) === ".info" | ||
? path.substr(0, 5) + path.substring(5).replace(/\./g, "/") | ||
: path.replace(/\./g, "/"); | ||
} | ||
exports.slashNotation = slashNotation; |
{ | ||
"name": "abstracted-firebase", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": | ||
@@ -35,6 +35,7 @@ "Core library supporting 'abstracted-admin' and 'abstracted-client' libraries", | ||
"faker": "^4.1.0", | ||
"@firebase/app": "^0.1.6", | ||
"firemock": "^0.14.5" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app": "^0.1.0", | ||
"@firebase/app": "^0.1.6", | ||
"@firebase/app-types": "^0.1.0", | ||
@@ -41,0 +42,0 @@ "@firebase/database": "^0.1.6", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13106
222
10