Socket
Socket
Sign inDemoInstall

@moxb/meteor

Package Overview
Dependencies
Maintainers
2
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moxb/meteor - npm Package Compare versions

Comparing version 0.2.0-beta.1 to 0.2.0-beta.2

build/__tests__/empty.test.d.ts

2

build/index.d.ts

@@ -7,5 +7,3 @@ export * from './MeteorCall';

export * from './MeteorTableFetcher';
export * from './MeteorTableImpl';
export * from './MeteorTableFetcherImpl';
export * from './MethodDataFetcherImpl';
export * from './QueryStringParser';

@@ -7,5 +7,3 @@ "use strict";

tslib_1.__exportStar(require("./MeteorSubscriptionImpl"), exports);
tslib_1.__exportStar(require("./MeteorTableImpl"), exports);
tslib_1.__exportStar(require("./MeteorTableFetcherImpl"), exports);
tslib_1.__exportStar(require("./MethodDataFetcherImpl"), exports);
tslib_1.__exportStar(require("./QueryStringParser"), exports);

@@ -6,3 +6,2 @@ import { Mongo } from 'meteor/mongo';

readonly data: T[];
readonly error?: Meteor.Error;
}

@@ -9,0 +8,0 @@ export interface MeteorTableQuery {

@@ -17,10 +17,3 @@ "use strict";

MeteorTableFetcherImpl.prototype.callFetchData = function (query, done) {
var _this = this;
this._fetchData(query, function (error, data) {
// if there is an error, we set the error in the data
if (error) {
return done(error, tslib_1.__assign({ error: error }, _this.getInitialData()));
}
return done(error, data);
});
this._fetchData(query, done);
};

@@ -27,0 +20,0 @@ tslib_1.__decorate([

@@ -82,3 +82,3 @@ "use strict";

mobx_1.onBecomeObserved(this, '_data', function () {
console.log('observing=', _this.constructor.name);
console.log('Observing=', JSON.stringify({}, null, 2));
// it's important to get the autorunDisposer here...

@@ -88,3 +88,2 @@ _this.autorunDisposer = mobx_1.autorun(function () { return _this.runDataFetcherFunction(); });

mobx_1.onBecomeUnobserved(this, '_data', function () {
console.log('un-observing=', _this.constructor.name);
_this.clearAllData();

@@ -91,0 +90,0 @@ // we stop the auto update, since nobody is listening....

{
"name": "@moxb/meteor",
"version": "0.2.0-beta.1",
"version": "0.2.0-beta.2",
"description": "MobX meteor binding",

@@ -49,3 +49,3 @@ "scripts": {

"devDependencies": {
"@moxb/moxb": "^0.2.0-beta.1",
"@moxb/moxb": "^0.2.0-beta.2",
"@types/jest": "^23.3.1",

@@ -56,4 +56,4 @@ "@types/meteor": "^1.4.16",

"dependencies": {
"@moxb/moxb": "^0.2.0-beta.1"
"@moxb/moxb": "^0.2.0-beta.2"
}
}
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