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

alt

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alt - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

17

dist/alt.js

@@ -142,12 +142,10 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Alt=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

// If you have both action and onAction
if (_this2[action] && _this2[assumedEventHandler]) {
throw new ReferenceError("You have multiple action handlers bound to an action: " + ("" + action + " and " + assumedEventHandler))
// If you have both action and onAction
throw new ReferenceError("You have multiple action handlers bound to an action: " + ("" + action + " and " + assumedEventHandler));
} else if (_this2[action]) {
// action
;
} else if (_this2[action]) {
handler = _this2[action]
handler = _this2[action];
} else if (_this2[assumedEventHandler]) {
// onAction
;
} else if (_this2[assumedEventHandler]) {
handler = _this2[assumedEventHandler];

@@ -250,4 +248,5 @@ }

Alt.prototype.createActions = function (ActionsClass) {
Alt.prototype.createActions = function (ActionsClass, exportObj) {
var _this4 = this;
if (exportObj === undefined) exportObj = {};
var key = ActionsClass.displayName || ActionsClass.name;

@@ -289,3 +288,3 @@ var actions = assign({}, getInternalMethods(ActionsClass.prototype, builtInProto));

return obj;
}, {});
}, exportObj);
};

@@ -292,0 +291,0 @@

{
"name": "alt",
"version": "0.10.0",
"version": "0.10.1",
"description": "A flux implementation",

@@ -5,0 +5,0 @@ "main": "dist/alt.js",

@@ -45,3 +45,4 @@ var Alt = require('./src/coverage-alt')

var myActions = alt.createActions(MyActions)
var myActions = {}
alt.createActions(MyActions, myActions)

@@ -48,0 +49,0 @@ class MyStore {

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