Socket
Socket
Sign inDemoInstall

@firebase/database

Package Overview
Dependencies
9
Maintainers
3
Versions
3248
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

28

dist/cjs/index.node.d.ts

@@ -17,3 +17,31 @@ /**

import { FirebaseNamespace } from '@firebase/app';
import { Database } from './src/api/Database';
import { Query } from './src/api/Query';
import { Reference } from './src/api/Reference';
import * as INTERNAL from './src/api/internal';
import * as TEST_ACCESS from './src/api/test_access';
import './src/nodePatches';
/**
* A one off register function which returns a database based on the app and
* passed database URL.
*
* @param app A valid FirebaseApp-like object
* @param url A valid Firebase databaseURL
*/
export declare function initStandalone(app: any, url: any): {
instance: Database;
namespace: {
Reference: typeof Reference;
Query: typeof Query;
Database: typeof Database;
enableLogging: (logger_?: boolean | ((a: string) => void), persistent?: boolean) => void;
INTERNAL: typeof INTERNAL;
ServerValue: {
TIMESTAMP: {
'.sv': string;
};
};
TEST_ACCESS: typeof TEST_ACCESS;
};
};
export declare function registerDatabase(instance: FirebaseNamespace): void;

24

dist/cjs/index.node.js

@@ -28,2 +28,24 @@ "use strict";

require("./src/nodePatches");
/**
* A one off register function which returns a database based on the app and
* passed database URL.
*
* @param app A valid FirebaseApp-like object
* @param url A valid Firebase databaseURL
*/
function initStandalone(app, url) {
return {
instance: RepoManager_1.RepoManager.getInstance().databaseFromApp(app, url),
namespace: {
Reference: Reference_1.Reference,
Query: Query_1.Query,
Database: Database_1.Database,
enableLogging: util_1.enableLogging,
INTERNAL: INTERNAL,
ServerValue: Database_1.Database.ServerValue,
TEST_ACCESS: TEST_ACCESS
}
};
}
exports.initStandalone = initStandalone;
function registerDatabase(instance) {

@@ -43,3 +65,3 @@ // Register the Database Service with the 'firebase' namespace.

if (util_2.isNodeSdk()) {
module.exports = namespace;
module.exports = Object.assign({}, namespace, { initStandalone: initStandalone });
}

@@ -46,0 +68,0 @@ }

@@ -17,3 +17,31 @@ /**

import { FirebaseNamespace } from '@firebase/app';
import { Database } from './src/api/Database';
import { Query } from './src/api/Query';
import { Reference } from './src/api/Reference';
import * as INTERNAL from './src/api/internal';
import * as TEST_ACCESS from './src/api/test_access';
import './src/nodePatches';
/**
* A one off register function which returns a database based on the app and
* passed database URL.
*
* @param app A valid FirebaseApp-like object
* @param url A valid Firebase databaseURL
*/
export declare function initStandalone(app: any, url: any): {
instance: Database;
namespace: {
Reference: typeof Reference;
Query: typeof Query;
Database: typeof Database;
enableLogging: (logger_?: boolean | ((a: string) => void), persistent?: boolean) => void;
INTERNAL: typeof INTERNAL;
ServerValue: {
TIMESTAMP: {
'.sv': string;
};
};
TEST_ACCESS: typeof TEST_ACCESS;
};
};
export declare function registerDatabase(instance: FirebaseNamespace): void;

@@ -26,2 +26,23 @@ /**

import './src/nodePatches';
/**
* A one off register function which returns a database based on the app and
* passed database URL.
*
* @param app A valid FirebaseApp-like object
* @param url A valid Firebase databaseURL
*/
export function initStandalone(app, url) {
return {
instance: RepoManager.getInstance().databaseFromApp(app, url),
namespace: {
Reference: Reference,
Query: Query,
Database: Database,
enableLogging: enableLogging,
INTERNAL: INTERNAL,
ServerValue: Database.ServerValue,
TEST_ACCESS: TEST_ACCESS
}
};
}
export function registerDatabase(instance) {

@@ -41,3 +62,3 @@ // Register the Database Service with the 'firebase' namespace.

if (isNodeSdk()) {
module.exports = namespace;
module.exports = Object.assign({}, namespace, { initStandalone: initStandalone });
}

@@ -44,0 +65,0 @@ }

4

package.json
{
"name": "@firebase/database",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -20,3 +20,3 @@ "main": "dist/cjs/index.node.js",

"dependencies": {
"@firebase/util": "^0.1.0",
"@firebase/util": "^0.1.1",
"faye-websocket": "0.9.3"

@@ -23,0 +23,0 @@ },

@@ -1,5 +0,5 @@

# `@firebase/database`
# @firebase/database
This is the realtime database component for the Firebase JS SDK. It has a peer
dependency on the [`@firebase/app`](https://npm.im) package on NPM. This package
dependency on the [`@firebase/app`](https://npm.im/@firebase/app) package on NPM. This package
is included by default in the [`firebase`](https://npm.im/firebase) wrapper

@@ -6,0 +6,0 @@ package.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc