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

jetstream

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jetstream - npm Package Compare versions

Comparing version 0.9.9 to 0.9.10

18

lib/scope.js

@@ -114,2 +114,6 @@ // Copyright (c) 2015 Uber Technologies, Inc.

Scope.prototype.setRoot = function(modelObject, callback) {
if (this._rootModelObjectUUID) {
return callbackOrEmitError(this, callback, new Error('Already has root modelObject set'));
}
// Will call addModelObjectAsRootModelObject and set the modelObject.scope property

@@ -119,2 +123,16 @@ modelObject.setScopeAndMakeRootModel(this, callback);

Scope.prototype.removeRoot = function(callback) {
if (!this._rootModelObjectUUID) {
return callbackOrEmitError(this, callback, new Error('No root modelObject to remove'));
}
// Will unset the modelObject.scope property
this.getRootModelObject(function(err, modelObject) {
if (err) {
return callbackOrEmitError(this, callback, err);
}
modelObject.setScope(null, callback);
}.bind(this));
};
Scope.prototype.addModelObjectAsRootModelObject = function(modelObject, callback) {

@@ -121,0 +139,0 @@ if (this._rootModelObjectUUID) {

2

package.json
{
"name": "jetstream",
"version": "0.9.9",
"version": "0.9.10",
"description": "Jetstream Sync server framework to sync local and remote models",

@@ -5,0 +5,0 @@ "keywords": [

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