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

@moxb/meteor

Package Overview
Dependencies
Maintainers
4
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.3.8 to 0.3.13

3

dist/MeteorCall.d.ts

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

export declare type MeteorCallback<T> = (error?: any, result?: T) => void;
/// <reference types="meteor" />
export declare type MeteorCallback<T> = (error: Error | Meteor.Error | undefined, result?: T) => void;
/**

@@ -3,0 +4,0 @@ * If no callback given, it throws an error if the client simulation fails.

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

/// <reference types="meteor" />
import { MeteorCallback } from './MeteorCall';
import MethodThisType = Meteor.MethodThisType;
/**

@@ -30,2 +32,6 @@ * Here, we provide a type-safe way to define and call a Meteor method.

/**
* Do we need to check authorization before executing the call?
*/
auth?: (input: Input, userId: string | null) => void;
/**
* The code to execute (on the server side) when the method is executed.

@@ -35,5 +41,5 @@ *

*
* You can throw normal Errors in this code, they will be converted into Meteor.Error instances
* You can throw normal Errors in this code, they will be converted into Meteor.Errors
*/
execute: (input: Input) => Output;
execute: (input: Input, userId: string | null, context: MethodThisType) => Output;
}

@@ -40,0 +46,0 @@ /**

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

var _a;
var name = method.name, debug = method.debug, execute = method.execute, serverOnly = method.serverOnly, unblock = method.unblock;
var name = method.name, debug = method.debug, execute = method.execute, serverOnly = method.serverOnly, unblock = method.unblock, auth = method.auth;
var logger = (0, moxb_1.getDebugLogger)('Method ' + name, debug);

@@ -55,2 +55,5 @@ if (Meteor.isServer || !serverOnly) {

// }
if (auth) {
auth(input, this.userId);
}
logger.log('with data', input);

@@ -60,3 +63,3 @@ if (unblock) {

}
var result = wrapException(execute)(input);
var result = wrapException(execute)(input, this.userId, this);
logger.log('returns', result);

@@ -99,2 +102,2 @@ return result;

exports.registerMeteorMethod = registerMeteorMethod;
//# sourceMappingUR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BTyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQztnQkFDbEIsSUFBQSx1QkFBVSxFQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsVUFBQyxLQUFVLEVBQUUsTUFBYztvQkFDOUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztvQkFDbkIsSUFBSSxLQUFLLEVBQUU7d0JBQ1AsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO3FCQUNqQjt5QkFBTTt3QkFDSCxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7cUJBQ25CO2dCQUNMLENBQUMsQ0FBQyxDQUFDO1lBQ1AsQ0FBQyxDQUFDO1FBVkYsQ0FVRTtLQUNULENBQUM7QUFDTixDQUFDO0FBM0RELG9EQTJEQyJ9
{
"name": "@moxb/meteor",
"version": "0.3.8",
"version": "0.3.13",
"description": "MobX meteor binding",

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

"dependencies": {
"@moxb/moxb": "^0.3.8"
"@moxb/moxb": "^0.3.13"
},

@@ -66,3 +66,3 @@ "peerDependencies": {

},
"gitHead": "8aae8078730648304e48d37b5342711fed55e622"
"gitHead": "12578c5fc3c1fe84f54e56543dd145bba9d6e687"
}
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