New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

autotyper-jquery

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autotyper-jquery - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

2

dist/index.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):t.autotyperJquery=e(t.jQuery)}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function i(t){return""+t.substring(0,1).toUpperCase()+t.substring(1)}function n(t){return t.split("-").map(function(t,e){return 0===e?t:i(t)}).join("")}function r(t,e){return e?"data-"+e+"-"+t:"data-"+t}function s(t,e,i){return e.reduce(function(e,s){var o=t.getAttribute(r(s,i)),u=n(s);return null===o?e:c({},e,l({},u,JSON.parse(o)))},{})}function o(t,e){var i=Math.min(t,e),n=Math.max(t,e),r=n-i+1;return Math.floor(Math.random()*r)+i}t="default"in t?t.default:t;var u=e(function(t){function e(t){if(t)return i(t)}function i(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n,r=0;r<i.length;r++)if(n=i[r],n===e||n.fn===e){i.splice(r,1);break}return this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),i=this._callbacks["$"+t];if(i){i=i.slice(0);for(var n=0,r=i.length;n<r;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}),a="autotyper",h="0.14.0",l=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},f=function(){function t(t,e){var i=[],n=!0,r=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw s}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(t){var e=void 0;if(Array.isArray(t)&&2===t.length){var i=f(t,2),n=i[0],r=i[1];e=o(n,r)}else e="function"==typeof t?t():parseInt(t,10);return e},y="init",g="start",m="type",v="loop",b="stop",d="destroy",x={INIT:y,START:g,TYPE:m,LOOP:v,STOP:b,DESTROY:d},T=["text","interval","auto-start","loop","loop-interval","empty"],k={text:"This is the default text.",interval:[200,300],autoStart:!0,loop:!1,loopInterval:0,empty:" "},S=c(new u,{init:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=this.parseArguments(i),o=f(r,2),u=o[0],h=void 0===u?null:u,l=o[1],p=void 0===l?{}:l;if(h){var g=h.innerHTML.trim(),m=c(s(h,T,a),JSON.parse(h.getAttribute("data-"+a+"-options")));this.element=h,this.settings=c({},k,g&&{text:g},m,p),Object.defineProperty(this,"text",{set:function(t){this.element&&(this.element.innerHTML=t)}})}else this.settings=c({},k,p);if(this.isRunning=!1,this.reset(),this.emit(y),this.settings.autoStart===!0)this.start();else{var v=parseInt(this.settings.autoStart,10);isNaN(v)||setTimeout(function(){return t.start()},v)}return this},parseArguments:function(t){if(0===t.length)return t;var e=f(t,1),i=e[0];return i instanceof HTMLElement?t:[null,i]},reset:function(){return this.letterTotal=this.settings.text.length,this.letterCount=0,this.settings.loop&&("number"==typeof this.settings.loop&&(this.loopTotal=this.settings.loop),this.loopCount=0),this},start:function(){return this.isRunning?this:(clearTimeout(this.timeout),this.isRunning=!0,this.emit(g),this.type(),this)},type:function(){var t=void 0,e=void 0;return this.tick(p(this.settings.interval)),this.letterCount>this.letterTotal?this.settings.loop?this.loop():this.stop():(0===this.letterCount?this.settings.empty===!1?(this.letterCount+=1,t=this.settings.text.substring(0,this.letterCount),e=this.settings.text.substring(this.letterCount-1,this.letterCount)):"string"==typeof this.settings.empty&&(t=this.settings.empty,e=this.settings.empty):(t=this.settings.text.substring(0,this.letterCount),e=this.settings.text.substring(this.letterCount-1,this.letterCount)),this.text=t,this.emit(m,t,e),this.letterCount+=1,this)},stop:function(){return this.isRunning?(clearTimeout(this.timeout),this.isRunning=!1,this.emit(b),this):this},destroy:function(){this.isRunning&&this.stop(),this.emit(d),this.off(),this.element=null},tick:function(t){var e=this;return clearTimeout(this.timeout),this.timeout=setTimeout(function(){return e.type()},t),this},loop:function(){return this.tick(p(this.settings.loopInterval)),this.loopCount===this.loopTotal?this.stop():(this.loopCount+=1,this.letterCount=0,this.emit(v,this.loopCount),this)},empty:function(){return clearTimeout(this.timeout),"string"==typeof this.settings.empty?this.text=this.settings.empty:this.text=k.empty,this.letterCount=0,this.isRunning&&this.tick(p(this.settings.interval)),this},fill:function(){return clearTimeout(this.timeout),this.text=this.settings.text,this.letterCount=this.settings.text.length,this.isRunning&&this.tick(p(this.settings.interval)),this}}),C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O=function(){function t(t,e){var i=[],n=!0,r=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw s}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=x.DESTROY,j=Object.keys(x).map(function(t){return x[t]}),_=Object.create(S);return t.extend(_,{parseArguments:function(e){if(0===e.length)return e;var i=O(e,2),n=i[0],r=i[1];return n instanceof t?[n[0],r]:[null,n]}}),t.fn.autotyper=function(){for(var e=this,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=n[0],o=n.slice(1);if(0===this.length)return this;if("string"==typeof s){var u=function(){var i=s;return e.each(function(){var e=t(this),n=e.data(a);"object"===("undefined"==typeof n?"undefined":C(n))&&"function"==typeof n[i]&&n[i](o)}),{v:e}}();if("object"===("undefined"==typeof u?"undefined":C(u)))return u.v}var h=s;return this.each(function(){var e=t(this),i=Object.create(_);e.data(a,i),j.forEach(function(n){i.on(n,function(){for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];e.trigger.apply(e,[a+"."+n].concat(r)),n===A&&(e.off(a),t.removeData(e[0],a))})}),i.init(e,h)}),this},t.autotyper=function(){var t;return(t=Object.create(_)).init.apply(t,arguments)},t.extend(t.autotyper,{DEFAULTS:k,EVENTS:x,NAME:a,VERSION:h}),_});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):t.autotyperJquery=e(t.jQuery)}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function i(t){return""+t.substring(0,1).toUpperCase()+t.substring(1)}function n(t){return t.split("-").map(function(t,e){return 0===e?t:i(t)}).join("")}function r(t,e){return e?"data-"+e+"-"+t:"data-"+t}function s(t,e,i){return e.reduce(function(e,s){var o=t.getAttribute(r(s,i)),u=n(s);return null===o?e:c({},e,l({},u,JSON.parse(o)))},{})}function o(t,e){var i=Math.min(t,e),n=Math.max(t,e),r=n-i+1;return Math.floor(Math.random()*r)+i}t="default"in t?t.default:t;var u=e(function(t){function e(t){if(t)return i(t)}function i(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n,r=0;r<i.length;r++)if(n=i[r],n===e||n.fn===e){i.splice(r,1);break}return this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),i=this._callbacks["$"+t];if(i){i=i.slice(0);for(var n=0,r=i.length;n<r;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}),a="autotyper",h="0.14.1",l=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},f=function(){function t(t,e){var i=[],n=!0,r=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw s}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(t){var e=void 0;if(Array.isArray(t)&&2===t.length){var i=f(t,2),n=i[0],r=i[1];e=o(n,r)}else e="function"==typeof t?t():parseInt(t,10);return e},y="init",g="start",m="type",v="loop",b="stop",d="destroy",x={INIT:y,START:g,TYPE:m,LOOP:v,STOP:b,DESTROY:d},T=["text","interval","auto-start","loop","loop-interval","empty"],k={text:"This is the default text.",interval:[200,300],autoStart:!0,loop:!1,loopInterval:0,empty:" "},S=c(new u,{init:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=this.parseArguments(i),o=f(r,2),u=o[0],h=void 0===u?null:u,l=o[1],p=void 0===l?{}:l;if(h){var g=h.innerHTML.trim(),m=c(s(h,T,a),JSON.parse(h.getAttribute("data-"+a+"-options")));this.element=h,this.settings=c({},k,g&&{text:g},m,p),Object.defineProperty(this,"text",{set:function(t){this.element&&(this.element.innerHTML=t)}})}else this.settings=c({},k,p);if(this.isRunning=!1,this.reset(),this.emit(y),this.settings.autoStart===!0)this.start();else{var v=parseInt(this.settings.autoStart,10);isNaN(v)||setTimeout(function(){return t.start()},v)}return this},parseArguments:function(t){if(0===t.length)return t;var e=f(t,1),i=e[0];return i instanceof HTMLElement?t:[null,i]},reset:function(){return this.letterTotal=this.settings.text.length,this.letterCount=0,this.settings.loop&&("number"==typeof this.settings.loop&&(this.loopTotal=this.settings.loop),this.loopCount=0),this},start:function(){return this.isRunning?this:(clearTimeout(this.timeout),this.isRunning=!0,this.emit(g),this.type(),this)},type:function(){var t=void 0,e=void 0;return this.tick(p(this.settings.interval)),this.letterCount>this.letterTotal?this.settings.loop?this.loop():this.stop():(0===this.letterCount?this.settings.empty===!1?(this.letterCount+=1,t=this.settings.text.substring(0,this.letterCount),e=this.settings.text.substring(this.letterCount-1,this.letterCount)):"string"==typeof this.settings.empty&&(t=this.settings.empty,e=this.settings.empty):(t=this.settings.text.substring(0,this.letterCount),e=this.settings.text.substring(this.letterCount-1,this.letterCount)),this.text=t,this.emit(m,t,e),this.letterCount+=1,this)},stop:function(){return this.isRunning?(clearTimeout(this.timeout),this.isRunning=!1,this.emit(b),this):this},destroy:function(){this.isRunning&&this.stop(),this.emit(d),this.off(),this.element=null},tick:function(t){var e=this;return clearTimeout(this.timeout),this.timeout=setTimeout(function(){return e.type()},t),this},loop:function(){return this.tick(p(this.settings.loopInterval)),this.loopCount===this.loopTotal?this.stop():(this.loopCount+=1,this.letterCount=0,this.emit(v,this.loopCount),this)},empty:function(){return clearTimeout(this.timeout),"string"==typeof this.settings.empty?this.text=this.settings.empty:this.text=k.empty,this.letterCount=0,this.isRunning&&this.tick(p(this.settings.interval)),this},fill:function(){return clearTimeout(this.timeout),this.text=this.settings.text,this.letterCount=this.settings.text.length,this.isRunning&&this.tick(p(this.settings.interval)),this}}),C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O=function(){function t(t,e){var i=[],n=!0,r=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw s}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=x.DESTROY,j=Object.keys(x).map(function(t){return x[t]}),_=Object.create(S);return t.extend(_,{parseArguments:function(e){if(0===e.length)return e;var i=O(e,2),n=i[0],r=i[1];return n instanceof t?[n[0],r]:[null,n]}}),t.fn.autotyper=function(){for(var e=this,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=n[0],o=n.slice(1);if(0===this.length)return this;if("string"==typeof s){var u=function(){var i=s;return e.each(function(){var e=t(this),n=e.data(a);"object"===("undefined"==typeof n?"undefined":C(n))&&"function"==typeof n[i]&&n[i](o)}),{v:e}}();if("object"===("undefined"==typeof u?"undefined":C(u)))return u.v}var h=s;return this.each(function(){var e=t(this),i=Object.create(_);e.data(a,i),j.forEach(function(n){i.on(n,function(){for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];e.trigger.apply(e,[a+"."+n].concat(r)),n===A&&(e.off(a),t.removeData(e[0],a))})}),i.init(e,h)}),this},t.autotyper=function(){var t;return(t=Object.create(_)).init.apply(t,arguments)},t.extend(t.autotyper,{DEFAULTS:k,EVENTS:x,NAME:a,VERSION:h}),_});
//# sourceMappingURL=index.min.js.map

@@ -22,6 +22,6 @@ {

"homepage": "https://github.com/saulhardman/autotyper/",
"version": "0.14.0",
"version": "0.14.1",
"repository": "https://github.com/saulhardman/autotyper/tree/master/packages/autotyper-jquery",
"dependencies": {
"autotyper": "^0.14.0"
"autotyper": "^0.14.1"
},

@@ -28,0 +28,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

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