Socket
Socket
Sign inDemoInstall

manuel

Package Overview
Dependencies
0
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.62.0 to 0.63.0

examples/simple-mithril/index.html

4

dist/manuel.js

@@ -374,3 +374,5 @@ (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.manuel = 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 new_highlighted =
config.keyboardNavigate(
e.shiftKey
? []
: config.keyboardNavigate(
config.showingDrawer

@@ -377,0 +379,0 @@ , get(highlighted)

@@ -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{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).manuel=e()}}(function(){return function e(n,o,t){function r(u,s){if(!o[u]){if(!n[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(i)return i(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var l=o[u]={exports:{}};n[u][0].call(l.exports,function(e){var o=n[u][1][e];return r(o||e)},l,l.exports,e,n,o,t)}return o[u].exports}for(var i="function"==typeof require&&require,u=0;u<t.length;u++)r(t[u]);return r}({1:[function(e,n,o){function t(e,n){return!e.trim().length||RegExp(r(e.trim()),"i").test(n)}function r(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function i(e,n){return e.length!==n.length?e.length-n.length:e<n?-1:1}function u(e,n){return e[n[0]]=n[1],e}var s={submit:function(e,n){return 13==e&&n?[n]:[]},dismiss:function(e){return 27==e?[!0]:[]},navigate:function(e,n,o,t){var r=o.indexOf(n),i=-1==r,u=o.length-1,s=r>=-1,a=r+1,d=r-1;return!e||38!=t&&40!=t?[]:38!=t||!i&&0!=r?38==t&&s?[o[d]]:40!=t||!i&&r!=u?[o[a]]:[o[0]]:[o[u]]}};n.exports=function(e){var n=e.hyperscript,o=e.get,r=e.set;return function(e,a){var d=a||{},l=e.list,f=e.input,c=e.chosen,m=e.open,v=e.highlighted,p=o(f),h=void 0!==d.minChars?d.minChars:2,g=void 0!==d.maxItems?d.maxItems:10,b=void 0!==d.sort?d.sort:i,N=void 0!==d.filter?d.filter:t,y=void 0!==d.filteredList?d.filteredList:o(l).filter(function(e){return N(p,e)}).sort(b).slice(0,g);null!=o(v)&&-1==y.indexOf(o(v))&&r(v,null),null!=o(c)&&o(c)!=p&&r(c,null);var k={filteredList:y,eventNames:void 0!==d.eventNames?d.eventNames:{oninput:"oninput",onfocus:"onfocus",onblur:"onblur",onkeydown:"onkeydown",onmousedown:"onmousedown"},showingDrawer:void 0!==d.showingDrawer?d.showingDrawer:o(m)&&p.length>=h&&y.length>0,choose:void 0!==d.choose?d.choose:function(e){o(c)!=e&&r(c,e),o(f)!=e&&r(f,e),k.close()},clickItem:void 0!==d.clickItem?d.clickItem:function(e){return k.choose(e)},PATTERN_INPUT:void 0!==d.PATTERN_INPUT?d.PATTERN_INPUT:p?new RegExp(p,"gi"):null,mark:void 0!==d.mark?d.mark:function(e){return n("mark",{},e)},highlight:void 0!==d.highlight?d.highlight:function(e){var n=null!=k.PATTERN_INPUT?e.match(k.PATTERN_INPUT):null,o=null!=n?n.reduce(function(e,n){var o=e.buffer.indexOf(n);return{buffer:e.buffer.slice(o+n.length),output:e.output.concat(0===o?[]:e.buffer.slice(0,o),[k.mark(e.buffer.slice(o,o+n.length))])}},{buffer:e,output:[]}):{output:e,buffer:""};return o.output.concat(o.buffer||[])},oninput:void 0!==d.oninput?d.oninput:function(e){var n=e.currentTarget.value;o(f)!=n&&r(f,n),o(m)||r(m,!0)},onfocus:void 0!==d.onfocus?d.onfocus:function(){o(m)||r(m,!0)},close:void 0!==d.close?d.close:function(){o(m)&&r(m,!1)},onblur:void 0!==d.onblur?d.onblur:function(){k.close()},renderInput:void 0!==d.renderInput?d.renderInput:function(){return n("input",[["value",p],[k.eventNames.oninput,k.oninput],[k.eventNames.onfocus,k.onfocus],[k.eventNames.onblur,k.onblur]].reduce(u,{}),null)},itemClassNames:void 0!==d.itemClassNames?d.itemClassNames:function(e){return e==o(v)?"highlight":""},renderItem:void 0!==d.renderItem?d.renderItem:function(e,o){return n("li",[["className",o.itemClassNames(e,o)],[o.eventNames.onmousedown,function(n){o.clickItem(e),n.stopPropagation()}]].reduce(u,{}),o.highlight(e))},renderItems:void 0!==d.renderItems?d.renderItems:function(e){return n("ul",{},e.filteredList.map(function(n){return e.renderItem(n,e)}))},classNames:void 0!==d.classNames?d.classNames:function(){return["manuel-complete"].concat(k.showingDrawer?["open"]:[],p.length>0?["not-empty"]:[],o(l).length>0?["loaded"]:[]).join(" ")},renderRoot:void 0!==d.renderRoot?d.renderRoot:function(e){return n("div",[["className",e.classNames()],[e.eventNames.onkeydown,e.onkeydown]].reduce(u,{}),[e.renderInput(e),e.renderItems(e)])},keyboardSubmit:void 0!==d.keyboardSubmit?d.keyboardSubmit:s.submit,keyboardDismiss:void 0!==d.keyboardDismiss?d.keyboardDismiss:s.dismiss,keyboardNavigate:void 0!==d.keyboardNavigate?d.keyboardNavigate:s.navigate,onkeydown:void 0!==d.onkeydown?d.onkeydown:function(e){var n=k.keyboardSubmit(e.keyCode,o(v)),t=k.keyboardDismiss(e.keyCode),i=k.keyboardNavigate(k.showingDrawer,o(v),k.filteredList,e.keyCode);n.map(k.choose),i.map(function(e){return r(v,e)}),t.map(k.close),[].concat(n,t,i).slice(0,1).map(function(){return e.preventDefault(),null})}};return k.renderRoot(k)}}},{}]},{},[1])(1)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).manuel=e()}}(function(){return function e(n,o,t){function r(u,s){if(!o[u]){if(!n[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(i)return i(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var l=o[u]={exports:{}};n[u][0].call(l.exports,function(e){var o=n[u][1][e];return r(o||e)},l,l.exports,e,n,o,t)}return o[u].exports}for(var i="function"==typeof require&&require,u=0;u<t.length;u++)r(t[u]);return r}({1:[function(e,n,o){function t(e,n){return!e.trim().length||RegExp(r(e.trim()),"i").test(n)}function r(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function i(e,n){return e.length!==n.length?e.length-n.length:e<n?-1:1}function u(e,n){return e[n[0]]=n[1],e}var s={submit:function(e,n){return 13==e&&n?[n]:[]},dismiss:function(e){return 27==e?[!0]:[]},navigate:function(e,n,o,t){var r=o.indexOf(n),i=-1==r,u=o.length-1,s=r>=-1,a=r+1,d=r-1;return!e||38!=t&&40!=t?[]:38!=t||!i&&0!=r?38==t&&s?[o[d]]:40!=t||!i&&r!=u?[o[a]]:[o[0]]:[o[u]]}};n.exports=function(e){var n=e.hyperscript,o=e.get,r=e.set;return function(e,a){var d=a||{},l=e.list,f=e.input,c=e.chosen,m=e.open,v=e.highlighted,p=o(f),h=void 0!==d.minChars?d.minChars:2,g=void 0!==d.maxItems?d.maxItems:10,b=void 0!==d.sort?d.sort:i,N=void 0!==d.filter?d.filter:t,y=void 0!==d.filteredList?d.filteredList:o(l).filter(function(e){return N(p,e)}).sort(b).slice(0,g);null!=o(v)&&-1==y.indexOf(o(v))&&r(v,null),null!=o(c)&&o(c)!=p&&r(c,null);var k={filteredList:y,eventNames:void 0!==d.eventNames?d.eventNames:{oninput:"oninput",onfocus:"onfocus",onblur:"onblur",onkeydown:"onkeydown",onmousedown:"onmousedown"},showingDrawer:void 0!==d.showingDrawer?d.showingDrawer:o(m)&&p.length>=h&&y.length>0,choose:void 0!==d.choose?d.choose:function(e){o(c)!=e&&r(c,e),o(f)!=e&&r(f,e),k.close()},clickItem:void 0!==d.clickItem?d.clickItem:function(e){return k.choose(e)},PATTERN_INPUT:void 0!==d.PATTERN_INPUT?d.PATTERN_INPUT:p?new RegExp(p,"gi"):null,mark:void 0!==d.mark?d.mark:function(e){return n("mark",{},e)},highlight:void 0!==d.highlight?d.highlight:function(e){var n=null!=k.PATTERN_INPUT?e.match(k.PATTERN_INPUT):null,o=null!=n?n.reduce(function(e,n){var o=e.buffer.indexOf(n);return{buffer:e.buffer.slice(o+n.length),output:e.output.concat(0===o?[]:e.buffer.slice(0,o),[k.mark(e.buffer.slice(o,o+n.length))])}},{buffer:e,output:[]}):{output:e,buffer:""};return o.output.concat(o.buffer||[])},oninput:void 0!==d.oninput?d.oninput:function(e){var n=e.currentTarget.value;o(f)!=n&&r(f,n),o(m)||r(m,!0)},onfocus:void 0!==d.onfocus?d.onfocus:function(){o(m)||r(m,!0)},close:void 0!==d.close?d.close:function(){o(m)&&r(m,!1)},onblur:void 0!==d.onblur?d.onblur:function(){k.close()},renderInput:void 0!==d.renderInput?d.renderInput:function(){return n("input",[["value",p],[k.eventNames.oninput,k.oninput],[k.eventNames.onfocus,k.onfocus],[k.eventNames.onblur,k.onblur]].reduce(u,{}),null)},itemClassNames:void 0!==d.itemClassNames?d.itemClassNames:function(e){return e==o(v)?"highlight":""},renderItem:void 0!==d.renderItem?d.renderItem:function(e,o){return n("li",[["className",o.itemClassNames(e,o)],[o.eventNames.onmousedown,function(n){o.clickItem(e),n.stopPropagation()}]].reduce(u,{}),o.highlight(e))},renderItems:void 0!==d.renderItems?d.renderItems:function(e){return n("ul",{},e.filteredList.map(function(n){return e.renderItem(n,e)}))},classNames:void 0!==d.classNames?d.classNames:function(){return["manuel-complete"].concat(k.showingDrawer?["open"]:[],p.length>0?["not-empty"]:[],o(l).length>0?["loaded"]:[]).join(" ")},renderRoot:void 0!==d.renderRoot?d.renderRoot:function(e){return n("div",[["className",e.classNames()],[e.eventNames.onkeydown,e.onkeydown]].reduce(u,{}),[e.renderInput(e),e.renderItems(e)])},keyboardSubmit:void 0!==d.keyboardSubmit?d.keyboardSubmit:s.submit,keyboardDismiss:void 0!==d.keyboardDismiss?d.keyboardDismiss:s.dismiss,keyboardNavigate:void 0!==d.keyboardNavigate?d.keyboardNavigate:s.navigate,onkeydown:void 0!==d.onkeydown?d.onkeydown:function(e){var n=k.keyboardSubmit(e.keyCode,o(v)),t=k.keyboardDismiss(e.keyCode),i=e.shiftKey?[]:k.keyboardNavigate(k.showingDrawer,o(v),k.filteredList,e.keyCode);n.map(k.choose),i.map(function(e){return r(v,e)}),t.map(k.close),[].concat(n,t,i).slice(0,1).map(function(){return e.preventDefault(),null})}};return k.renderRoot(k)}}},{}]},{},[1])(1)});

@@ -373,3 +373,5 @@ /* eslint-disable fp/no-mutating-methods */

var new_highlighted =
config.keyboardNavigate(
e.shiftKey
? []
: config.keyboardNavigate(
config.showingDrawer

@@ -376,0 +378,0 @@ , get(highlighted)

{
"name": "manuel",
"version": "0.62.0",
"version": "0.63.0",
"description": "A super customizable VDOM autocomplete with *production ready* defaults.",
"main": "index.js",
"scripts": {
"test": "npm run test:test && npm run test:report-coverage && npm run test:check-coverage",
"test": "cat package.json | ramda .scripts keys \"filter( test(/test:/) )\" \"map(concat('npm run '))\" \"join(' && ')\" -R | sh",
"test:examples": "npm run dist && ls ./examples | ramda -r \"( './examples/' + )\" | xargs -I {} cp ./dist/** {}",
"test:test": "nyc --reporter=lcov tape \"./tests/*.js\" | tap-spec",
"test:check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"test:report-coverage": "nyc report",
"test:lint": "eslint . -c .eslintrc --ignore-path .gitignore --max-warnings 0",
"test:dist": "npm run dist",
"dist:js-max": "browserify index.js --standalone manuel > dist/manuel.js",

@@ -30,2 +33,3 @@ "dist:js-min": "cat dist/manuel.js | uglifyjs -mc > dist/manuel.min.js",

"ramda": "^0.24.1",
"ramda-cli": "^1.7.0",
"tap-spec": "^4.1.1",

@@ -32,0 +36,0 @@ "tape": "^4.7.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc