Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript-asharghi/firebase-database

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-asharghi/firebase-database - npm Package Compare versions

Comparing version 3.2.5 to 3.2.7

8

common.ts

@@ -1,2 +0,2 @@

import { FirebaseApp, FirebaseError } from '@nativescript/firebase-core';
import { FirebaseApp, FirebaseError } from '@nativescript-asharghi/firebase-core';
export type EventType = 'value' | 'child_added' | 'child_changed' | 'child_moved' | 'child_removed';

@@ -9,3 +9,3 @@

export interface IThenableReference extends IReference, PromiseLike<any> {}
export interface IThenableReference extends IReference, PromiseLike<any> { }

@@ -73,4 +73,4 @@ export interface IOnDisconnect {

persistenceEnabled: boolean;
useEmulator(host: string, port: number);
setLoggingEnabled(enabled: boolean);
useEmulator(host: string, port: number);
setLoggingEnabled(enabled: boolean);
goOffline();

@@ -77,0 +77,0 @@ goOnline();

@@ -1,2 +0,2 @@

import { deserialize, firebase, FirebaseApp, FirebaseError, serialize } from '@nativescript/firebase-core';
import { deserialize, firebase, FirebaseApp, FirebaseError, serialize } from '@nativescript-asharghi/firebase-core';
import { IDatabase, IReference, IDataSnapshot, EventType, IQuery, IOnDisconnect, TransactionResult, IThenableReference } from './common';

@@ -425,3 +425,3 @@ import lazy from '@nativescript/core/utils/lazy';

if (typeof onComplete === 'function') {
promise.catch(() => {});
promise.catch(() => { });
}

@@ -663,3 +663,3 @@

this._persistenceCacheSizeBytes = bytes;
} catch (e) {}
} catch (e) { }
}

@@ -674,3 +674,3 @@ _persistenceEnabled = false;

this._persistenceEnabled = value;
} catch (e) {}
} catch (e) { }
}

@@ -677,0 +677,0 @@

@@ -1,2 +0,2 @@

import { Firebase, FirebaseApp } from '@nativescript/firebase-core';
import { Firebase, FirebaseApp } from '@nativescript-asharghi/firebase-core';
import { IDataSnapshot, IDatabase, IOnDisconnect, EventType, IQuery, IReference, IThenableReference, TransactionResult } from './common';

@@ -146,4 +146,4 @@

declare module '@nativescript/firebase-core' {
export interface Firebase extends FirebaseDatabase {}
declare module '@nativescript-asharghi/firebase-core' {
export interface Firebase extends FirebaseDatabase { }
}

@@ -150,0 +150,0 @@

@@ -1,2 +0,2 @@

import { deserialize, firebase, FirebaseApp, FirebaseError } from '@nativescript/firebase-core';
import { deserialize, firebase, FirebaseApp, FirebaseError } from '@nativescript-asharghi/firebase-core';
import { IDatabase, IReference, IDataSnapshot, EventType, IQuery, IOnDisconnect, IThenableReference } from './common';

@@ -410,3 +410,3 @@

if (typeof onComplete === 'function') {
promise.catch(() => {});
promise.catch(() => { });
}

@@ -413,0 +413,0 @@

{
"name": "@nativescript-asharghi/firebase-database",
"version": "3.2.5",
"version": "3.2.7",
"description": "NativeScript Firebase - Database",

@@ -42,2 +42,2 @@ "main": "index",

"bootstrapper": "@nativescript/plugin-seed"
}
}

@@ -1,6 +0,6 @@

# @nativescript/firebase-database
# @nativescript-asharghi/firebase-database
* [Intro](#Intro)
* [Installation](#Installation)
* [Use @nativescript/firebase-database](#Use-nativescriptfirebase-database)
* [Use @nativescript-asharghi/firebase-database](#Use-nativescriptfirebase-database)
* [Import the plugin](#import-the-plugin)

@@ -44,3 +44,3 @@ * [Create a database instance](#create-a-database-instance)

A plugin that allows you to add [Firebase Realtime Databse](https://firebase.google.com/docs/database) to your NativeScript app.
> **Note:** Use this plugin with the [@nativescript/firebase-core](../firebase-core/) plugin to initialize Firebase.
> **Note:** Use this plugin with the [@nativescript-asharghi/firebase-core](../firebase-core/) plugin to initialize Firebase.
NativeScript Firebase provides integration with the Android & iOS Firebase SDKs, supporting both realtime data sync and offline capabilities.

@@ -55,6 +55,6 @@

```cli
npm install @nativescript/firebase-database
npm install @nativescript-asharghi/firebase-database
```
## Use @nativescript/firebase-database
## Use @nativescript-asharghi/firebase-database

@@ -68,3 +68,3 @@ >**Note** The [Firebase documentation](https://firebase.google.com/docs/database/web/structure-data) provides great examples of best practices on how to structure your data. We highly recommend reading the guide before building out your database.

```ts
import '@nativescript/firebase-database'; // only needs to be imported 1x
import '@nativescript-asharghi/firebase-database'; // only needs to be imported 1x
```

@@ -77,3 +77,3 @@

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -86,4 +86,4 @@ const database = firebase().database();

```ts
import { firebase } from '@nativescript/firebase-core';
import '@nativescript/firebase-database';
import { firebase } from '@nativescript-asharghi/firebase-core';
import '@nativescript-asharghi/firebase-database';

@@ -104,3 +104,3 @@ // create secondary app instance

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -119,3 +119,3 @@ const reference = firebase().database().ref('/users/123');

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -136,3 +136,3 @@ firebase()

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -162,3 +162,3 @@ firebase()

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -180,3 +180,3 @@ const onChildAdd = firebase()

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -207,3 +207,3 @@ const onValueChange = firebase()

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -234,3 +234,3 @@ /*

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -245,3 +245,3 @@ const users = firebase().database().ref('users').limitToFirst(10).once('value');

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -260,3 +260,3 @@ await firebase().database().ref('users').orderByChild('age').startAt(21).once('value');

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -280,3 +280,3 @@ firebase()

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -298,3 +298,3 @@ firebase()

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -319,3 +319,3 @@ const newReference = firebase().database().ref('/users').push();

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -328,3 +328,3 @@ await firebase().database().ref('/users/123').remove();

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -347,3 +347,3 @@ await firebase().database().ref('/users/123').set(null);

```ts
import { firebase } from '@nativescript/firebase-core';
import { firebase } from '@nativescript-asharghi/firebase-core';

@@ -350,0 +350,0 @@ function onPostLike(postId) {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc