firebase
Advanced tools
Comparing version 3.6.5 to 3.6.6
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -25,2 +25,2 @@ var firebase = (function() { for(var k="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(b.get||b.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[c]=b.value)},l="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,m=function(){m=function(){};l.Symbol||(l.Symbol=p)},q=0,p=function(a){return"jscomp_symbol_"+(a||"")+q++},t=function(){m();var a=l.Symbol.iterator;a||(a=l.Symbol.iterator= | ||
return void 0===c?"Application Error: ("+a+")":c};var U=T(),V=["$__firebase"],W=this;V[0]in W||!W.execScript||W.execScript("var "+V[0]);for(var Y;V.length&&(Y=V.shift());){var Z;if(Z=!V.length)Z=void 0!==U;Z?W[Y]=U:W=W[Y]?W[Y]:W[Y]={}}; return $__firebase; })(); module.exports = firebase; | ||
firebase.SDK_VERSION = "3.6.5"; | ||
firebase.SDK_VERSION = "3.6.6"; |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -33,2 +33,32 @@ declare namespace firebase { | ||
interface User extends firebase.UserInfo { | ||
delete(): firebase.Promise<any>; | ||
emailVerified: boolean; | ||
getToken(forceRefresh?: boolean): firebase.Promise<any>; | ||
isAnonymous: boolean; | ||
link(credential: firebase.auth.AuthCredential): firebase.Promise<any>; | ||
linkWithPopup(provider: firebase.auth.AuthProvider): firebase.Promise<any>; | ||
linkWithRedirect(provider: firebase.auth.AuthProvider): | ||
firebase.Promise<any>; | ||
providerData: (firebase.UserInfo|null)[]; | ||
reauthenticate(credential: firebase.auth.AuthCredential): | ||
firebase.Promise<any>; | ||
refreshToken: string; | ||
reload(): firebase.Promise<any>; | ||
sendEmailVerification(): firebase.Promise<any>; | ||
unlink(providerId: string): firebase.Promise<any>; | ||
updateEmail(newEmail: string): firebase.Promise<any>; | ||
updatePassword(newPassword: string): firebase.Promise<any>; | ||
updateProfile(profile: {displayName: string | null, photoURL: string|null}): | ||
firebase.Promise<any>; | ||
} | ||
interface UserInfo { | ||
displayName: string|null; | ||
email: string|null; | ||
photoURL: string|null; | ||
providerId: string; | ||
uid: string; | ||
} | ||
function app(name?: string): firebase.app.App; | ||
@@ -38,3 +68,11 @@ | ||
function auth(app?: firebase.app.App): firebase.auth.Auth; | ||
function database(app?: firebase.app.App): firebase.database.Database; | ||
function initializeApp(options: Object, name?: string): firebase.app.App; | ||
function messaging(app?: firebase.app.App): firebase.messaging.Messaging; | ||
function storage(app?: firebase.app.App): firebase.storage.Storage; | ||
} | ||
@@ -44,10 +82,333 @@ | ||
interface App { | ||
auth(): firebase.auth.Auth; | ||
database(): firebase.database.Database; | ||
delete(): firebase.Promise<any>; | ||
messaging(): firebase.messaging.Messaging; | ||
name: string; | ||
options: Object; | ||
storage(): firebase.storage.Storage; | ||
} | ||
} | ||
declare module 'firebase' { | ||
export = firebase; | ||
declare namespace firebase.auth { | ||
interface ActionCodeInfo {} | ||
interface Auth { | ||
app: firebase.app.App; | ||
applyActionCode(code: string): firebase.Promise<any>; | ||
checkActionCode(code: string): firebase.Promise<any>; | ||
confirmPasswordReset(code: string, newPassword: string): | ||
firebase.Promise<any>; | ||
createCustomToken(uid: string, developerClaims?: Object|null): string; | ||
createUserWithEmailAndPassword(email: string, password: string): | ||
firebase.Promise<any>; | ||
currentUser: firebase.User|null; | ||
fetchProvidersForEmail(email: string): firebase.Promise<any>; | ||
getRedirectResult(): firebase.Promise<any>; | ||
onAuthStateChanged( | ||
nextOrObserver: Object, error?: (a: firebase.auth.Error) => any, | ||
completed?: () => any): () => any; | ||
sendPasswordResetEmail(email: string): firebase.Promise<any>; | ||
signInAnonymously(): firebase.Promise<any>; | ||
signInWithCredential(credential: firebase.auth.AuthCredential): | ||
firebase.Promise<any>; | ||
signInWithCustomToken(token: string): firebase.Promise<any>; | ||
signInWithEmailAndPassword(email: string, password: string): | ||
firebase.Promise<any>; | ||
signInWithPopup(provider: firebase.auth.AuthProvider): | ||
firebase.Promise<any>; | ||
signInWithRedirect(provider: firebase.auth.AuthProvider): | ||
firebase.Promise<any>; | ||
signOut(): firebase.Promise<any>; | ||
verifyIdToken(idToken: string): firebase.Promise<any>; | ||
verifyPasswordResetCode(code: string): firebase.Promise<any>; | ||
} | ||
interface AuthCredential { | ||
provider: string; | ||
} | ||
interface AuthProvider { | ||
providerId: string; | ||
} | ||
class EmailAuthProvider extends EmailAuthProvider_Instance { | ||
static PROVIDER_ID: string; | ||
static credential(email: string, password: string): | ||
firebase.auth.AuthCredential; | ||
} | ||
class EmailAuthProvider_Instance implements firebase.auth.AuthProvider { | ||
providerId: string; | ||
} | ||
interface Error { | ||
code: string; | ||
message: string; | ||
} | ||
class FacebookAuthProvider extends FacebookAuthProvider_Instance { | ||
static PROVIDER_ID: string; | ||
static credential(token: string): firebase.auth.AuthCredential; | ||
} | ||
class FacebookAuthProvider_Instance implements firebase.auth.AuthProvider { | ||
addScope(scope: string): any; | ||
providerId: string; | ||
setCustomParameters(customOAuthParameters: Object): any; | ||
} | ||
class GithubAuthProvider extends GithubAuthProvider_Instance { | ||
static PROVIDER_ID: string; | ||
static credential(token: string): firebase.auth.AuthCredential; | ||
} | ||
class GithubAuthProvider_Instance implements firebase.auth.AuthProvider { | ||
addScope(scope: string): any; | ||
providerId: string; | ||
setCustomParameters(customOAuthParameters: Object): any; | ||
} | ||
class GoogleAuthProvider extends GoogleAuthProvider_Instance { | ||
static PROVIDER_ID: string; | ||
static credential(idToken?: string|null, accessToken?: string|null): | ||
firebase.auth.AuthCredential; | ||
} | ||
class GoogleAuthProvider_Instance implements firebase.auth.AuthProvider { | ||
addScope(scope: string): any; | ||
providerId: string; | ||
setCustomParameters(customOAuthParameters: Object): any; | ||
} | ||
class TwitterAuthProvider extends TwitterAuthProvider_Instance { | ||
static PROVIDER_ID: string; | ||
static credential(token: string, secret: string): | ||
firebase.auth.AuthCredential; | ||
} | ||
class TwitterAuthProvider_Instance implements firebase.auth.AuthProvider { | ||
providerId: string; | ||
setCustomParameters(customOAuthParameters: Object): any; | ||
} | ||
type UserCredential = { | ||
credential: firebase.auth.AuthCredential | null, | ||
user: firebase.User | null | ||
}; | ||
} | ||
declare namespace firebase.database { | ||
interface DataSnapshot { | ||
child(path: string): firebase.database.DataSnapshot; | ||
exists(): boolean; | ||
exportVal(): any; | ||
forEach(action: (a: firebase.database.DataSnapshot) => boolean): boolean; | ||
getPriority(): string|number|null; | ||
hasChild(path: string): boolean; | ||
hasChildren(): boolean; | ||
key: string|null; | ||
numChildren(): number; | ||
ref: firebase.database.Reference; | ||
val(): any; | ||
} | ||
interface Database { | ||
app: firebase.app.App; | ||
goOffline(): any; | ||
goOnline(): any; | ||
ref(path?: string): firebase.database.Reference; | ||
refFromURL(url: string): firebase.database.Reference; | ||
} | ||
interface OnDisconnect { | ||
cancel(onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
remove(onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
set(value: any, onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
setWithPriority( | ||
value: any, priority: number|string|null, | ||
onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
update(values: Object, onComplete?: (a: Error|null) => any): | ||
firebase.Promise<any>; | ||
} | ||
interface Query { | ||
endAt(value: number|string|boolean|null, key?: string): | ||
firebase.database.Query; | ||
equalTo(value: number|string|boolean|null, key?: string): | ||
firebase.database.Query; | ||
isEqual(other: firebase.database.Query|null): boolean; | ||
limitToFirst(limit: number): firebase.database.Query; | ||
limitToLast(limit: number): firebase.database.Query; | ||
off(eventType?: string, | ||
callback?: (a: firebase.database.DataSnapshot, b?: string|null) => any, | ||
context?: Object|null): any; | ||
on(eventType: string, | ||
callback: (a: firebase.database.DataSnapshot|null, b?: string) => any, | ||
cancelCallbackOrContext?: Object|null, context?: Object| | ||
null): (a: firebase.database.DataSnapshot|null, b?: string) => any; | ||
once( | ||
eventType: string, | ||
successCallback?: | ||
(a: firebase.database.DataSnapshot, b?: string) => any, | ||
failureCallbackOrContext?: Object|null, | ||
context?: Object|null): firebase.Promise<any>; | ||
orderByChild(path: string): firebase.database.Query; | ||
orderByKey(): firebase.database.Query; | ||
orderByPriority(): firebase.database.Query; | ||
orderByValue(): firebase.database.Query; | ||
ref: firebase.database.Reference; | ||
startAt(value: number|string|boolean|null, key?: string): | ||
firebase.database.Query; | ||
toString(): string; | ||
} | ||
interface Reference extends firebase.database.Query { | ||
child(path: string): firebase.database.Reference; | ||
key: string|null; | ||
onDisconnect(): firebase.database.OnDisconnect; | ||
parent: firebase.database.Reference|null; | ||
push(value?: any, onComplete?: (a: Error|null) => any): | ||
firebase.database.ThenableReference; | ||
remove(onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
root: firebase.database.Reference; | ||
set(value: any, onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
setPriority( | ||
priority: string|number|null, | ||
onComplete: (a: Error|null) => any): firebase.Promise<any>; | ||
setWithPriority( | ||
newVal: any, newPriority: string|number|null, | ||
onComplete?: (a: Error|null) => any): firebase.Promise<any>; | ||
transaction( | ||
transactionUpdate: (a: any) => any, | ||
onComplete?: | ||
(a: Error|null, b: boolean, | ||
c: firebase.database.DataSnapshot|null) => any, | ||
applyLocally?: boolean): firebase.Promise<any>; | ||
update(values: Object, onComplete?: (a: Error|null) => any): | ||
firebase.Promise<any>; | ||
} | ||
interface ThenableReference extends firebase.database.Reference, | ||
firebase.Thenable<any> {} | ||
function enableLogging(enabled?: boolean, persistent?: boolean): any; | ||
} | ||
declare namespace firebase.database.ServerValue { | ||
var TIMESTAMP: Object; | ||
} | ||
declare namespace firebase.messaging { | ||
interface Messaging { | ||
deleteToken(token: string): firebase.Promise<any>|null; | ||
getToken(): firebase.Promise<any>|null; | ||
onMessage(nextOrObserver: Object): () => any; | ||
onTokenRefresh(nextOrObserver: Object): () => any; | ||
requestPermission(): firebase.Promise<any>|null; | ||
setBackgroundMessageHandler(callback: (a: Object) => any): any; | ||
useServiceWorker(registration: any): any; | ||
} | ||
} | ||
declare namespace firebase.storage { | ||
interface FullMetadata extends firebase.storage.UploadMetadata { | ||
bucket: string; | ||
downloadURLs: string[]; | ||
fullPath: string; | ||
generation: string; | ||
metageneration: string; | ||
name: string; | ||
size: number; | ||
timeCreated: string; | ||
updated: string; | ||
} | ||
interface Reference { | ||
bucket: string; | ||
child(path: string): firebase.storage.Reference; | ||
delete(): firebase.Promise<any>; | ||
fullPath: string; | ||
getDownloadURL(): firebase.Promise<any>; | ||
getMetadata(): firebase.Promise<any>; | ||
name: string; | ||
parent: firebase.storage.Reference|null; | ||
put(data: any|Uint8Array|ArrayBuffer, | ||
metadata?: firebase.storage.UploadMetadata): | ||
firebase.storage.UploadTask; | ||
putString( | ||
data: string, format?: firebase.storage.StringFormat, | ||
metadata?: firebase.storage.UploadMetadata): | ||
firebase.storage.UploadTask; | ||
root: firebase.storage.Reference; | ||
storage: firebase.storage.Storage; | ||
toString(): string; | ||
updateMetadata(metadata: firebase.storage.SettableMetadata): | ||
firebase.Promise<any>; | ||
} | ||
interface SettableMetadata { | ||
cacheControl?: string|null; | ||
contentDisposition?: string|null; | ||
contentEncoding?: string|null; | ||
contentLanguage?: string|null; | ||
contentType?: string|null; | ||
customMetadata?: {[/* warning: coerced from ? */ key: string]: string}|null; | ||
} | ||
interface Storage { | ||
app: firebase.app.App; | ||
maxOperationRetryTime: number; | ||
maxUploadRetryTime: number; | ||
ref(path?: string): firebase.storage.Reference; | ||
refFromURL(url: string): firebase.storage.Reference; | ||
setMaxOperationRetryTime(time: number): any; | ||
setMaxUploadRetryTime(time: number): any; | ||
} | ||
type StringFormat = string; | ||
var StringFormat: { | ||
BASE64: StringFormat, | ||
BASE64URL: StringFormat, | ||
DATA_URL: StringFormat, | ||
RAW: StringFormat, | ||
}; | ||
type TaskEvent = string; | ||
var TaskEvent: { | ||
STATE_CHANGED: TaskEvent, | ||
}; | ||
type TaskState = string; | ||
var TaskState: { | ||
CANCELED: TaskState, | ||
ERROR: TaskState, | ||
PAUSED: TaskState, | ||
RUNNING: TaskState, | ||
SUCCESS: TaskState, | ||
}; | ||
interface UploadMetadata extends firebase.storage.SettableMetadata { | ||
md5Hash?: string|null; | ||
} | ||
interface UploadTask { | ||
cancel(): boolean; | ||
catch(onRejected: (a: Error) => any): firebase.Promise<any>; | ||
on(event: firebase.storage.TaskEvent, nextOrObserver?: null|Object, | ||
error?: ((a: Error) => any)|null, complete?: (() => any)|null): Function; | ||
pause(): boolean; | ||
resume(): boolean; | ||
snapshot: firebase.storage.UploadTaskSnapshot; | ||
then( | ||
onFulfilled?: ((a: firebase.storage.UploadTaskSnapshot) => any)|null, | ||
onRejected?: ((a: Error) => any)|null): firebase.Promise<any>; | ||
} | ||
interface UploadTaskSnapshot { | ||
bytesTransferred: number; | ||
downloadURL: string|null; | ||
metadata: firebase.storage.FullMetadata; | ||
ref: firebase.storage.Reference; | ||
state: firebase.storage.TaskState; | ||
task: firebase.storage.UploadTask; | ||
totalBytes: number; | ||
} | ||
} | ||
export = firebase; |
var firebase = (function(){ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -31,4 +31,4 @@ var firebase = null; (function() { var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,l=function(){l=function(){};h.Symbol||(h.Symbol=ba)},ca=0,ba=function(a){return"jscomp_symbol_"+(a||"")+ca++},n=function(){l();var a=h.Symbol.iterator;a||(a=h.Symbol.iterator= | ||
return void 0===b?"Application Error: ("+a+")":b};"undefined"!==typeof firebase&&(firebase=Ja()); }).call(this); | ||
firebase.SDK_VERSION = "3.6.5"; | ||
firebase.SDK_VERSION = "3.6.6"; | ||
return firebase;}).call(global); | ||
module.exports = firebase; |
/** | ||
* @fileoverview Firebase namespace and Firebase App API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -5,0 +5,0 @@ * Copyright 2016 Google Inc. All Rights Reserved. |
/** | ||
* @fileoverview Firebase Auth API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -5,0 +5,0 @@ * Copyright 2016 Google Inc. All Rights Reserved. |
/** | ||
* @fileoverview Firebase client Auth API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -5,0 +5,0 @@ * Copyright 2016 Google Inc. All Rights Reserved. |
/** | ||
* @fileoverview Firebase Database API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -1488,3 +1488,3 @@ * Copyright 2016 Google Inc. All Rights Reserved. | ||
* var rootRef = firebase.database().ref(); | ||
* ref.once("value") | ||
* rootRef.once("value") | ||
* .then(function(snapshot) { | ||
@@ -1491,0 +1491,0 @@ * var key = snapshot.key; // null |
/** | ||
* @fileoverview Firebase Messaging API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -5,0 +5,0 @@ * Copyright 2016 Google Inc. All Rights Reserved. |
/** | ||
* @fileoverview Firebase server Auth API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -5,0 +5,0 @@ * Copyright 2016 Google Inc. All Rights Reserved. |
/** | ||
* @fileoverview Firebase Storage API. | ||
* Version: 3.6.5 | ||
* Version: 3.6.6 | ||
* | ||
@@ -5,0 +5,0 @@ * Copyright 2016 Google Inc. All Rights Reserved. |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -30,2 +30,2 @@ var firebase = null; (function() { var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,l=function(){l=function(){};h.Symbol||(h.Symbol=ba)},ca=0,ba=function(a){return"jscomp_symbol_"+(a||"")+ca++},n=function(){l();var a=h.Symbol.iterator;a||(a=h.Symbol.iterator= | ||
return void 0===b?"Application Error: ("+a+")":b};"undefined"!==typeof firebase&&(firebase=Ja()); }).call(this); | ||
firebase.SDK_VERSION = "3.6.5"; | ||
firebase.SDK_VERSION = "3.6.6"; |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -4,0 +4,0 @@ (function(){var f=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]},g=this,h=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!= |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -4,0 +4,0 @@ (function(){var k,l=this,m=function(a){return void 0!==a},aa=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&& |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -4,0 +4,0 @@ declare namespace firebase { |
var firebase = require('./app'); | ||
(function(){ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -6,0 +6,0 @@ (function(){var f=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]},g=this,h=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!= |
{ | ||
"name": "firebase", | ||
"version": "3.6.5", | ||
"version": "3.6.6", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "base64-url": { |
{ | ||
"name": "firebase", | ||
"version": "3.6.5", | ||
"version": "3.6.6", | ||
"description": "Firebase JavaScript library for web and Node.js", | ||
@@ -5,0 +5,0 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", |
@@ -40,3 +40,3 @@ # Firebase - App success made simple | ||
``` | ||
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase.js"></script> | ||
@@ -61,6 +61,5 @@ <script> | ||
The Firebase JavaScript npm module contains both a browser version and a | ||
version for the Node.js runtime. The browser version is designed to be used with | ||
a package bundler (e.g., [Browserify](http://browserify.org/), | ||
[Webpack](https://webpack.github.io/)). | ||
The Firebase JavaScript npm package contains code that can be run in the browser | ||
after combining the modules you use with a package bundler (e.g., | ||
[Browserify](http://browserify.org/), [Webpack](https://webpack.github.io/)). | ||
@@ -79,5 +78,11 @@ Install the Firebase npm module: | ||
var app = firebase.initializeApp({ ... }); | ||
// ... | ||
``` | ||
If you are using ES6 imports or TypeScript: | ||
``` | ||
import * as firebase from 'firebase'; | ||
var app = firebase.initializeApp({ ... }); | ||
``` | ||
### Include only the features you need | ||
@@ -90,3 +95,3 @@ | ||
You can reduce the amount of code your app uses by just including the features | ||
you need. The individually installable components are: | ||
you need. The individually installable services are: | ||
@@ -99,11 +104,11 @@ - `firebase-app` - The core `firebase` client (required). | ||
From the CDN, include the individual components you need (include `firebase-app` | ||
From the CDN, include the individual services you use (include `firebase-app` | ||
first): | ||
``` | ||
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase-app.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase-auth.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase-database.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase-storage.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase-messaging.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase-app.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase-auth.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase-database.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase-storage.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/3.6.6/firebase-messaging.js"></script> | ||
@@ -116,3 +121,4 @@ <script> | ||
When using this npm package, just `require()` the components that you use: | ||
When using the firebase npm package, you can `require()` just the services that | ||
you use: | ||
@@ -125,5 +131,20 @@ ``` | ||
var app = firebase.initializeApp({ ... }); | ||
// ... | ||
``` | ||
If you are using TypeScript with the npm package, you can import just the | ||
services you use: | ||
``` | ||
// This import loads the firebase namespace along with all its type information. | ||
import * as firebase from 'firebase/app'; | ||
// These imports load individual services into the firebase namespace. | ||
import 'firebase/auth'; | ||
import 'firebase/database'; | ||
``` | ||
_The type information from the import statement will include all of the SDKs, | ||
not just the ones you have `required`, so you could get a runtime error if you | ||
reference a non-required service._ | ||
## Get the code (Node.js - server and command line) | ||
@@ -130,0 +151,0 @@ |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://developers.google.com/terms */ | ||
@@ -4,0 +4,0 @@ 'use strict'; |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://developers.google.com/terms */ | ||
@@ -4,0 +4,0 @@ 'use strict'; |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://developers.google.com/terms */ | ||
@@ -4,0 +4,0 @@ 'use strict'; |
@@ -1,3 +0,3 @@ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://developers.google.com/terms */ | ||
@@ -4,0 +4,0 @@ 'use strict'; |
var firebase = require('./app'); | ||
(function(){ | ||
/*! @license Firebase v3.6.5 | ||
Build: 3.6.5-rc.1 | ||
/*! @license Firebase v3.6.6 | ||
Build: 3.6.6-rc.3 | ||
Terms: https://firebase.google.com/terms/ */ | ||
@@ -6,0 +6,0 @@ (function(){var k,l=this,m=function(a){return void 0!==a},aa=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&& |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1378006
10997
208