@cerebral/firebase
Advanced tools
Comparing version 0.0.0-beta.2 to 0.0.0-beta.3
@@ -58,6 +58,6 @@ 'use strict'; | ||
var events = { | ||
'onChildAdded': 'child_added', | ||
'onChildChanged': 'child_changed', | ||
'onChildRemoved': 'child_removed', | ||
'onValue': 'value', | ||
onChildAdded: 'child_added', | ||
onChildChanged: 'child_changed', | ||
onChildRemoved: 'child_removed', | ||
onValue: 'value', | ||
'*': '*' | ||
@@ -64,0 +64,0 @@ }; |
@@ -17,3 +17,5 @@ 'use strict'; | ||
if (ref) { | ||
throw new _errors.FirebaseProviderError({ message: 'You have already a setOnDisconnect' }); | ||
throw new _errors.FirebaseProviderError({ | ||
message: 'You have already a setOnDisconnect' | ||
}); | ||
} | ||
@@ -20,0 +22,0 @@ |
@@ -24,3 +24,3 @@ 'use strict'; | ||
if (!resolve.isTag(option, 'state', 'signal')) { | ||
throw new Error('@cerebral/firebase: The value for \'progress\' option should be either \'state\' or \'signal\' tag.'); | ||
throw new Error("@cerebral/firebase: The value for 'progress' option should be either 'state' or 'signal' tag."); | ||
} | ||
@@ -27,0 +27,0 @@ |
@@ -32,4 +32,3 @@ 'use strict'; | ||
totalBytes: snapshot.totalBytes, | ||
state: snapshot.state // 'paused', 'running' | ||
}); | ||
state: snapshot.state }); | ||
}, function (error) { | ||
@@ -36,0 +35,0 @@ reject(new _errors.FirebaseProviderError(error)); |
@@ -16,3 +16,6 @@ 'use strict'; | ||
return ref.transaction(transactionFunction).then(function (result) { | ||
return { committed: result.committed, value: result.snapshot.val() }; | ||
return { | ||
committed: result.committed, | ||
value: result.snapshot.val() | ||
}; | ||
}).catch(function (error) { | ||
@@ -19,0 +22,0 @@ throw new _errors.FirebaseProviderError(error); |
{ | ||
"name": "@cerebral/firebase", | ||
"version": "0.0.0-beta.2", | ||
"version": "0.0.0-beta.3", | ||
"description": "Firebase provider for Cerebral", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha --compilers js:babel-register 'src/**/*.test.js'", | ||
"test": "mocha --compilers js:babel-register \"src/**/*.test.js\"", | ||
"build": "cross-env BABEL_ENV=production babel src/ --out-dir=lib/ -s", | ||
"prepublish": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cerebral/cerebral.git" | ||
}, | ||
"keywords": [ | ||
@@ -15,8 +19,17 @@ "cerebral", | ||
], | ||
"author": "Christian Alfoni", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/cerebral/cerebral/issues" | ||
}, | ||
"homepage": "https://github.com/cerebral/cerebral/tree/master/packages/firebase#readme", | ||
"dependencies": { | ||
"firebase": "^3.5.2" | ||
"firebase": "^3.9.0" | ||
}, | ||
"peerDependencies": { | ||
"cerebral": "^2.0.0-beta.2" | ||
"cerebral": "^2.0.0-beta.3" | ||
}, | ||
"devDependencies": { | ||
"cerebral": "^2.0.0-beta.3" | ||
} | ||
} |
@@ -6,7 +6,7 @@ # @cerebral/firebase | ||
`npm install @cerebral/firebase@next --save --save-next` | ||
`npm install @cerebral/firebase --save` | ||
**YARN** | ||
`yarn add @cerebral/firebase@next --exact` | ||
`yarn add @cerebral/firebase` | ||
@@ -13,0 +13,0 @@ ## description |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
163508
125
0
1629
1
0
1
Updatedfirebase@^3.9.0