duration-input
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -1,6 +0,4 @@ | ||
var DurationInput = (function ($) { | ||
var DurationInput = (function () { | ||
'use strict'; | ||
$ = 'default' in $ ? $['default'] : $; | ||
var asyncGenerator = function () { | ||
@@ -463,15 +461,4 @@ function AwaitValue(value) { | ||
if (typeof $ !== 'undefined') { | ||
$.fn.durationInput = function durationInput(options) { | ||
this.each(function each() { | ||
/* istanbul ignore else */ | ||
if (!$.data(this, 'plugin_durationInput') && !$(this).parent().hasClass('duration-container')) { | ||
$.data(this, 'plugin_durationInput', new DurationInput(this, options)); | ||
} | ||
}); | ||
}; | ||
} | ||
return DurationInput; | ||
}($)); | ||
}()); |
{ | ||
"name": "duration-input", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "JavaScript library for managing duration based inputs.", | ||
@@ -49,3 +49,2 @@ "author": "Matthew Callis <matthew.callis@gmail.com>", | ||
"eslint-plugin-xss": "^0.1.8", | ||
"jquery": "^2", | ||
"nyc": "^8.4.0", | ||
@@ -52,0 +51,0 @@ "precommit-hook-eslint": "^3.0.0", |
@@ -6,9 +6,13 @@ # Duration Input | ||
[![devDependency Status](https://david-dm.org/MatthewCallis/duration-input/dev-status.svg?style=flat)](https://david-dm.org/MatthewCallis/duration-input#info=devDependencies) | ||
[![Test Coverage](https://codeclimate.com/github/MatthewCallis/duration-input/badges/coverage.svg)](https://codeclimate.com/github/MatthewCallis/duration-input) | ||
[![Coverage Status](https://coveralls.io/repos/MatthewCallis/duration-input/badge.svg)](https://coveralls.io/r/MatthewCallis/duration-input) | ||
[![Test Coverage](https://codeclimate.com/github/MatthewCallis/duration-input/badges/coverage.svg)](https://codeclimate.com/github/MatthewCallis/duration-input/coverage) | ||
[![Coverage Status](https://coveralls.io/repos/github/MatthewCallis/duration-input/badge.svg?branch=master)](https://coveralls.io/github/MatthewCallis/duration-input?branch=master) | ||
JavaScript library for managing duration based inputs. | ||
Useful if you need consumer friendly durations measured in seconds. | ||
The last version to support jQuery was `v2.0.0`. | ||
### License | ||
Duration Input is [MIT licensed](./LICENSE). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25
18
16690
378