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

keiser-echip-utilities

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keiser-echip-utilities - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

dist/keu.js

@@ -380,3 +380,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.keu = f()}})(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(require,module,exports){

var initialize = function (messageEvent) {
var messageObject = JSON.parse(messageEvent.data);
var messageObject = JSON.parse(messageEvent.data || '');
if ((messageObject || {})

@@ -383,0 +383,0 @@ .action && messageObject.action === MESSENGER_CONST.ACTION.CONNECT) {

@@ -1,1 +0,1 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.keu=e()}}(function(){return function e(n,t,a){function i(l,o){if(!t[l]){if(!n[l]){var s="function"==typeof require&&require;if(!o&&s)return s(l,!0);if(r)return r(l,!0);var m=new Error("Cannot find module '"+l+"'");throw m.code="MODULE_NOT_FOUND",m}var d=t[l]={exports:{}};n[l][0].call(d.exports,function(e){var t=n[l][1][e];return i(t?t:e)},d,d.exports,e,n,t,a)}return t[l].exports}for(var r="function"==typeof require&&require,l=0;l<a.length;l++)i(a[l]);return i}({1:[function(e,n,t){n.exports=function(){"use strict";var e={},n=[{models:[4385,4394],name:"Leg Extension",line:"A250",extra:""},{models:[4386,4395],name:"Leg Extension",line:"A250",extra:"Range Limiter"},{models:[4401,4410],name:"Leg Extension",line:"A300",extra:"120 Degree"},{models:[4402,4411],name:"Leg Extension",line:"A300",extra:"90 Degree"},{models:[4641,4650],name:"Leg Curl",line:"A250",extra:""},{models:[4642,4651],name:"Leg Curl",line:"A250",extra:"Range Limiter"},{models:[4657,4666],name:"Leg Curl",line:"A300",extra:""},{models:[4897,4906],name:"Chest Press",line:"A250",extra:""},{models:[4913,4922],name:"Chest Press",line:"A300",extra:""},{models:[4917,4923],name:"Biaxial Chest Press",line:"A300",extra:""},{models:[4918,4924],name:"Straight Push Chest Press",line:"A300",extra:""},{models:[4919],name:"Straight Push Chest Press",line:"A300",extra:"2010-3-1"},{models:[4920],name:"Straight Push Chest Press",line:"A300",extra:"2010-9-1"},{models:[5169,5178],name:"Shoulder Raise",line:"A300",extra:""},{models:[5425,5434],name:"Squat",line:"A300",extra:""},{models:[5426,5435],name:"Squat",line:"A300",extra:""},{models:[5456],name:"Belt Squat",line:"A300",extra:""},{models:[5665,5674],name:"Military Press",line:"A250",extra:""},{models:[5681,5690],name:"Military Press",line:"A300",extra:""},{models:[5921,5930],name:"Arm Curl",line:"A250",extra:""},{models:[5942,5947],name:"Arm Curl",line:"A300",extra:""},{models:[6193,6202],name:"Shrug",line:"A300",extra:""},{models:[6433,6442],name:"Tricep",line:"A250",extra:""},{models:[6449,6458],name:"Tricep",line:"A300",extra:""},{models:[8225,8234],name:"Upper Back",line:"A250",extra:""},{models:[8241,8245,8250,8251],name:"Upper Back",line:"A300",extra:""},{models:[8481,8490],name:"Lat Pulldown",line:"A250",extra:""},{models:[8497,8506],name:"Lat Pulldown",line:"A300",extra:""},{models:[8737,8746],name:"Seated Butterfly",line:"A250",extra:""},{models:[8753,8762],name:"Seated Butterfly",line:"A300",extra:""},{models:[8757,8763],name:"Seated Butterfly",line:"A350",extra:""},{models:[9009,9018],name:"Abductor",line:"A300",extra:""},{models:[9265,9274],name:"Adductor",line:"A300",extra:""},{models:[9505,9514],name:"Leg Press",line:"A250",extra:""},{models:[9521,9530],name:"Leg Press",line:"A300",extra:""},{models:[9761,9770],name:"Standing Hip",line:"A250",extra:""},{models:[9777,9786],name:"Standing Hip",line:"A300",extra:""},{models:[10017,10026],name:"Abdominal",line:"A250",extra:""},{models:[10033,10042],name:"Abdominal",line:"A300",extra:""},{models:[10273,10282],name:"Lower Back",line:"A250",extra:""},{models:[10274,10283],name:"Lower Back",line:"A250",extra:"Range Limiter"},{models:[10289,10294,10298,10299],name:"Lower Back",line:"A300",extra:""},{models:[10550,10554],name:"Seated Calf",line:"A300",extra:""},{models:[12288,12298],name:"Performance Zone",line:"Infinity",extra:""},{models:[12304,12314],name:"Performance Trainer",line:"Infinity",extra:""},{models:[12320,12330],name:"Functional Trainer",line:"Infinity",extra:""},{models:[12336,12346],name:"Triple Trainer",line:"Infinity",extra:""},{models:[12352,12362],name:"Functional Wall Trainer",line:"Infinity",extra:""},{models:[12544],name:"Rack",line:"Power Rack",extra:"Seat Settings"},{models:[12547,12548,12549,12550,12560,12561,12576],name:"Rack",line:"Power Rack",extra:"Iron Weight"},{models:[12849],name:"Single Runner",line:"A300",extra:""},{models:[12850,12858],name:"Dual Runner",line:"A300",extra:""}];return e.getMachineDetails=function(e){for(var t=0;t<n.length;t++)for(var a=0;a<n[t].models.length;a++)if(n[t].models[a]==e)return n[t]},e}()},{}],2:[function(e,n,t){n.exports=function(){"use strict";var n={};return n.machine=e("./machine"),n.messenger=e("./messenger"),n}()},{"./machine":1,"./messenger":3}],3:[function(e,n,t){n.exports=function(){"use strict";var e,n,t,a,i,r={},l={TYPE:{RESPONSE:"response",REQUEST:"request"},ACTION:{CONNECT:"connect",ECHIP_SET:"echip-set",ECHIP_GET:"echip-get"}},o={initialized:!1,connected:!1,enabled:!1,actions:{eChipSet:!1,eChipGet:!1}},s=function(e){o.initialized?c(e.data):u(e)},m=function(t){e&&n&&e.postMessage(JSON.stringify(t),n)},d=function(e,n,t,a){var i={id:e,type:n,action:t,data:a};m(i)},u=function(a){var i=JSON.parse(a.data);(i||{}).action&&i.action===l.ACTION.CONNECT&&(e=a.source,n=a.origin,t=i.id,o.initialized=!0,o.enabled&&f())},c=function(e){if(o.enabled){var n=JSON.parse(e);if((n||{}).id)switch(n.action){case l.ACTION.ECHIP_SET:i(n.data,function(){A(n.id)});break;case l.ACTION.ECHIP_GET:a(n.data,function(e){x(n.id,e)})}}},f=function(){if(t){var e={actions:[]};o.actions.eChipSet&&e.actions.push(l.ACTION.ECHIP_SET),o.actions.eChipGet&&e.actions.push(l.ACTION.ECHIP_GET),d(t,l.TYPE.RESPONSE,l.ACTION.CONNECT,e)}},x=function(e,n){d(e,l.TYPE.RESPONSE,l.ACTION.ECHIP_GET,n)},A=function(e){var n={success:!0};d(e,l.TYPE.RESPONSE,l.ACTION.ECHIP_SET,n)};return r.enable=function(e,n){"function"==typeof e&&(o.actions.eChipGet=!0,a=e),"function"==typeof n&&(o.actions.eChipSet=!0,i=n),o.enabled=!0,o.initialized&&f()},r.disable=function(){o.enabled=!1,o.actions.eChipGet=!1,o.actions.eChipSet=!1,a=null,i=null,o.initialized&&f()},window.addEventListener("message",s),r}()},{}]},{},[2])(2)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.keu=e()}}(function(){return function e(n,t,a){function i(l,o){if(!t[l]){if(!n[l]){var s="function"==typeof require&&require;if(!o&&s)return s(l,!0);if(r)return r(l,!0);var m=new Error("Cannot find module '"+l+"'");throw m.code="MODULE_NOT_FOUND",m}var d=t[l]={exports:{}};n[l][0].call(d.exports,function(e){var t=n[l][1][e];return i(t?t:e)},d,d.exports,e,n,t,a)}return t[l].exports}for(var r="function"==typeof require&&require,l=0;l<a.length;l++)i(a[l]);return i}({1:[function(e,n,t){n.exports=function(){"use strict";var e={},n=[{models:[4385,4394],name:"Leg Extension",line:"A250",extra:""},{models:[4386,4395],name:"Leg Extension",line:"A250",extra:"Range Limiter"},{models:[4401,4410],name:"Leg Extension",line:"A300",extra:"120 Degree"},{models:[4402,4411],name:"Leg Extension",line:"A300",extra:"90 Degree"},{models:[4641,4650],name:"Leg Curl",line:"A250",extra:""},{models:[4642,4651],name:"Leg Curl",line:"A250",extra:"Range Limiter"},{models:[4657,4666],name:"Leg Curl",line:"A300",extra:""},{models:[4897,4906],name:"Chest Press",line:"A250",extra:""},{models:[4913,4922],name:"Chest Press",line:"A300",extra:""},{models:[4917,4923],name:"Biaxial Chest Press",line:"A300",extra:""},{models:[4918,4924],name:"Straight Push Chest Press",line:"A300",extra:""},{models:[4919],name:"Straight Push Chest Press",line:"A300",extra:"2010-3-1"},{models:[4920],name:"Straight Push Chest Press",line:"A300",extra:"2010-9-1"},{models:[5169,5178],name:"Shoulder Raise",line:"A300",extra:""},{models:[5425,5434],name:"Squat",line:"A300",extra:""},{models:[5426,5435],name:"Squat",line:"A300",extra:""},{models:[5456],name:"Belt Squat",line:"A300",extra:""},{models:[5665,5674],name:"Military Press",line:"A250",extra:""},{models:[5681,5690],name:"Military Press",line:"A300",extra:""},{models:[5921,5930],name:"Arm Curl",line:"A250",extra:""},{models:[5942,5947],name:"Arm Curl",line:"A300",extra:""},{models:[6193,6202],name:"Shrug",line:"A300",extra:""},{models:[6433,6442],name:"Tricep",line:"A250",extra:""},{models:[6449,6458],name:"Tricep",line:"A300",extra:""},{models:[8225,8234],name:"Upper Back",line:"A250",extra:""},{models:[8241,8245,8250,8251],name:"Upper Back",line:"A300",extra:""},{models:[8481,8490],name:"Lat Pulldown",line:"A250",extra:""},{models:[8497,8506],name:"Lat Pulldown",line:"A300",extra:""},{models:[8737,8746],name:"Seated Butterfly",line:"A250",extra:""},{models:[8753,8762],name:"Seated Butterfly",line:"A300",extra:""},{models:[8757,8763],name:"Seated Butterfly",line:"A350",extra:""},{models:[9009,9018],name:"Abductor",line:"A300",extra:""},{models:[9265,9274],name:"Adductor",line:"A300",extra:""},{models:[9505,9514],name:"Leg Press",line:"A250",extra:""},{models:[9521,9530],name:"Leg Press",line:"A300",extra:""},{models:[9761,9770],name:"Standing Hip",line:"A250",extra:""},{models:[9777,9786],name:"Standing Hip",line:"A300",extra:""},{models:[10017,10026],name:"Abdominal",line:"A250",extra:""},{models:[10033,10042],name:"Abdominal",line:"A300",extra:""},{models:[10273,10282],name:"Lower Back",line:"A250",extra:""},{models:[10274,10283],name:"Lower Back",line:"A250",extra:"Range Limiter"},{models:[10289,10294,10298,10299],name:"Lower Back",line:"A300",extra:""},{models:[10550,10554],name:"Seated Calf",line:"A300",extra:""},{models:[12288,12298],name:"Performance Zone",line:"Infinity",extra:""},{models:[12304,12314],name:"Performance Trainer",line:"Infinity",extra:""},{models:[12320,12330],name:"Functional Trainer",line:"Infinity",extra:""},{models:[12336,12346],name:"Triple Trainer",line:"Infinity",extra:""},{models:[12352,12362],name:"Functional Wall Trainer",line:"Infinity",extra:""},{models:[12544],name:"Rack",line:"Power Rack",extra:"Seat Settings"},{models:[12547,12548,12549,12550,12560,12561,12576],name:"Rack",line:"Power Rack",extra:"Iron Weight"},{models:[12849],name:"Single Runner",line:"A300",extra:""},{models:[12850,12858],name:"Dual Runner",line:"A300",extra:""}];return e.getMachineDetails=function(e){for(var t=0;t<n.length;t++)for(var a=0;a<n[t].models.length;a++)if(n[t].models[a]==e)return n[t]},e}()},{}],2:[function(e,n,t){n.exports=function(){"use strict";var n={};return n.machine=e("./machine"),n.messenger=e("./messenger"),n}()},{"./machine":1,"./messenger":3}],3:[function(e,n,t){n.exports=function(){"use strict";var e,n,t,a,i,r={},l={TYPE:{RESPONSE:"response",REQUEST:"request"},ACTION:{CONNECT:"connect",ECHIP_SET:"echip-set",ECHIP_GET:"echip-get"}},o={initialized:!1,connected:!1,enabled:!1,actions:{eChipSet:!1,eChipGet:!1}},s=function(e){o.initialized?c(e.data):u(e)},m=function(t){e&&n&&e.postMessage(JSON.stringify(t),n)},d=function(e,n,t,a){var i={id:e,type:n,action:t,data:a};m(i)},u=function(a){var i=JSON.parse(a.data||"");(i||{}).action&&i.action===l.ACTION.CONNECT&&(e=a.source,n=a.origin,t=i.id,o.initialized=!0,o.enabled&&f())},c=function(e){if(o.enabled){var n=JSON.parse(e);if((n||{}).id)switch(n.action){case l.ACTION.ECHIP_SET:i(n.data,function(){A(n.id)});break;case l.ACTION.ECHIP_GET:a(n.data,function(e){x(n.id,e)})}}},f=function(){if(t){var e={actions:[]};o.actions.eChipSet&&e.actions.push(l.ACTION.ECHIP_SET),o.actions.eChipGet&&e.actions.push(l.ACTION.ECHIP_GET),d(t,l.TYPE.RESPONSE,l.ACTION.CONNECT,e)}},x=function(e,n){d(e,l.TYPE.RESPONSE,l.ACTION.ECHIP_GET,n)},A=function(e){var n={success:!0};d(e,l.TYPE.RESPONSE,l.ACTION.ECHIP_SET,n)};return r.enable=function(e,n){"function"==typeof e&&(o.actions.eChipGet=!0,a=e),"function"==typeof n&&(o.actions.eChipSet=!0,i=n),o.enabled=!0,o.initialized&&f()},r.disable=function(){o.enabled=!1,o.actions.eChipGet=!1,o.actions.eChipSet=!1,a=null,i=null,o.initialized&&f()},window.addEventListener("message",s),r}()},{}]},{},[2])(2)});
{
"name": "keiser-echip-utilities",
"version": "0.1.6",
"version": "0.1.7",
"description": "Keiser eChip Utilities",

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

@@ -79,3 +79,3 @@ module.exports = function () {

var initialize = function (messageEvent) {
var messageObject = JSON.parse(messageEvent.data);
var messageObject = JSON.parse(messageEvent.data || '');
if ((messageObject || {})

@@ -82,0 +82,0 @@ .action && messageObject.action === MESSENGER_CONST.ACTION.CONNECT) {

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