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.12.0 to 0.12.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)),a=n(s);return null===o?e:c({},e,l({},a,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 a=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}}),u="autotyper",h="0.12.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,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&a.return&&a.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",v="start",g="type",m="loop",d="stop",b="destroy",T={INIT:y,START:v,TYPE:g,LOOP:m,STOP:d,DESTROY:b},x=["text","interval","auto-start","loop","loop-interval","empty-text"],k={text:"This is the default text.",interval:[200,300],autoStart:!0,loop:!1,emptyText:" "},S={init:function(){for(var t=this,e=void 0,i=void 0,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r[0]instanceof HTMLElement){var a=f(r,2);e=a[0];var h=a[1];i=void 0===h?{}:h}else{var l=f(r,1),p=l[0];i=void 0===p?{}:p}if(e){var v=e.innerHTML.trim(),g=c(s(e,x,u),JSON.parse(e.getAttribute("data-"+u)));this.element=e,this.settings=c({},k,v&&{text:v},g,i),this.originalText=v}else this.element=e,this.settings=c({},k,i),this.originalText=this.settings.text;if(this.settings.loopInterval=this.settings.loopInterval||this.settings.interval,this.isRunning=!1,this.settings.autoStart===!0)this.start();else{var m=parseInt(this.settings.autoStart,10);isNaN(m)||setTimeout(function(){return t.start()},m)}return this.emit(y),this},start:function(){return this.isRunning?this:(clearTimeout(this.timeout),this.isRunning=!0,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.tick(p(this.settings.interval)),this.emit(v),this)},setText:function(t){return this.text=t,this.element&&(this.element.innerHTML=t),this},type:function(){var t=void 0;return this.tick(p(this.settings.interval)),this.letterCount>this.letterTotal?this.settings.loop?this.loop():this.stop():(t=0===this.letterCount?this.settings.emptyText:this.settings.text.substring(0,this.letterCount),this.setText(t),this.emit(g,t),this.letterCount+=1,this)},stop:function(){return this.isRunning?(clearTimeout(this.timeout),this.isRunning=!1,this.emit(d),this):this},resetText:function(){return this.setText(this.originalText),this},destroy:function(){this.isRunning&&this.stop(),this.emit(b),this.off(),this.element=null},tick:function(t){var e=this;return clearTimeout(this.timeout),0===t?this.type():(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.letterTotal=this.settings.text.length,this.letterCount=0,this.emit(m,this.loopCount),this)}};a(S);var O="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},_=T.DESTROY;return 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);return 0===this.length?this:("undefined"==typeof s||"object"===("undefined"==typeof s?"undefined":O(s))?!function(){var i=s;e.each(function(){var e=t(this),n=Object.create(S);e.data(u,n),Object.keys(T).map(function(t){return T[t]}).forEach(function(t){n.on(t,function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.trigger.apply(e,[u+":"+t].concat(n))})}),n.on(_,function(){n.off(_),e.off(u)}),n.init(this,i)})}():"string"==typeof s&&!function(){var i=s;e.each(function(){var e=t(this),n=e.data(u);"object"===("undefined"==typeof n?"undefined":O(n))&&"function"==typeof n[i]&&(n[i](o),i===S.destroy.name&&t.removeData(this,u))})}(),this)},t.autotyper=S,t.extend(t.autotyper,{NAME:u,DEFAULTS:k,EVENTS:T,VERSION:h}),S});
!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)),a=n(s);return null===o?e:c({},e,l({},a,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 a=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}}),u="autotyper",h="0.12.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,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&a.return&&a.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",v="start",g="type",m="loop",d="stop",b="destroy",T={INIT:y,START:v,TYPE:g,LOOP:m,STOP:d,DESTROY:b},x=["text","interval","auto-start","loop","loop-interval","empty-text"],k={text:"This is the default text.",interval:[200,300],autoStart:!0,loop:!1,emptyText:" "},S={init:function(){for(var t=this,e=void 0,i=void 0,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r[0]instanceof HTMLElement){var a=f(r,2);e=a[0];var h=a[1];i=void 0===h?{}:h}else{var l=f(r,1),p=l[0];i=void 0===p?{}:p}if(e){var v=e.innerHTML.trim(),g=c(s(e,x,u),JSON.parse(e.getAttribute("data-"+u)));this.element=e,this.settings=c({},k,v&&{text:v},g,i),this.originalText=v}else this.element=e,this.settings=c({},k,i),this.originalText=this.settings.text;if(this.settings.loopInterval=this.settings.loopInterval||this.settings.interval,this.isRunning=!1,this.settings.autoStart===!0)this.start();else{var m=parseInt(this.settings.autoStart,10);isNaN(m)||setTimeout(function(){return t.start()},m)}return this.emit(y),this},start:function(){return this.isRunning?this:(clearTimeout(this.timeout),this.isRunning=!0,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.tick(p(this.settings.interval)),this.emit(v),this)},setText:function(t){return this.text=t,this.element&&(this.element.innerHTML=t),this},type:function(){var t=void 0;return this.tick(p(this.settings.interval)),this.letterCount>this.letterTotal?this.settings.loop?this.loop():this.stop():(t=0===this.letterCount?this.settings.emptyText:this.settings.text.substring(0,this.letterCount),this.setText(t),this.emit(g,t),this.letterCount+=1,this)},stop:function(){return this.isRunning?(clearTimeout(this.timeout),this.isRunning=!1,this.emit(d),this):this},resetText:function(){return this.setText(this.originalText),this},destroy:function(){this.isRunning&&this.stop(),this.emit(b),this.off(),this.element=null},tick:function(t){var e=this;return clearTimeout(this.timeout),0===t?this.type():(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.letterTotal=this.settings.text.length,this.letterCount=0,this.emit(m,this.loopCount),this)}};a(S);var O="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},_=T.DESTROY;return 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);return 0===this.length?this:("undefined"==typeof s||"object"===("undefined"==typeof s?"undefined":O(s))?!function(){var i=s;e.each(function(){var e=t(this),n=Object.create(S);e.data(u,n),Object.keys(T).map(function(t){return T[t]}).forEach(function(t){n.on(t,function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.trigger.apply(e,[u+":"+t].concat(n))})}),n.on(_,function(){n.off(_),e.off(u)}),n.init(this,i)})}():"string"==typeof s&&!function(){var i=s;e.each(function(){var e=t(this),n=e.data(u);"object"===("undefined"==typeof n?"undefined":O(n))&&"function"==typeof n[i]&&(n[i](o),i===S.destroy.name&&t.removeData(this,u))})}(),this)},t.autotyper=S,t.extend(t.autotyper,{NAME:u,DEFAULTS:k,EVENTS:T,VERSION:h}),S});
//# sourceMappingURL=index.min.js.map

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

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

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

@@ -9,2 +9,4 @@ # autotyper-jquery

### Yarn
```

@@ -14,2 +16,4 @@ yarn add jquery autotyper-query

### NPM
```

@@ -16,0 +20,0 @@ npm install --save jquery autotyper-jquery

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