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

duration-input

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duration-input - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

72

lib/duration-input.js

@@ -145,71 +145,2 @@ var DurationInput = (function () {

var get = function get(object, property, receiver) {
if (object === null) object = Function.prototype;
var desc = Object.getOwnPropertyDescriptor(object, property);
if (desc === undefined) {
var parent = Object.getPrototypeOf(object);
if (parent === null) {
return undefined;
} else {
return get(parent, property, receiver);
}
} else if ("value" in desc) {
return desc.value;
} else {
var getter = desc.get;
if (getter === undefined) {
return undefined;
}
return getter.call(receiver);
}
};
var set = function set(object, property, value, receiver) {
var desc = Object.getOwnPropertyDescriptor(object, property);
if (desc === undefined) {
var parent = Object.getPrototypeOf(object);
if (parent !== null) {
set(parent, property, value, receiver);
}
} else if ("value" in desc && desc.writable) {
desc.value = value;
} else {
var setter = desc.set;
if (setter !== undefined) {
setter.call(receiver, value);
}
}
return value;
};
var DurationInput = function () {

@@ -267,2 +198,3 @@ function DurationInput(element) {

var value = this.element.value;
try {

@@ -380,3 +312,3 @@ value = parseInt(value, 10);

if (type.value === 'immediately') {
new_d = new_h = new_m = 0;
new_d = 0;new_h = 0;new_m = 0;
}

@@ -383,0 +315,0 @@ _this.element.value = DurationInput.toSeconds(new_d, new_h, new_m, 0);

66

package.json
{
"name": "duration-input",
"version": "3.1.0",
"version": "3.2.0",
"description": "JavaScript library for managing duration based inputs.",

@@ -12,2 +12,9 @@ "author": "Matthew Callis <matthew.callis@gmail.com>",

],
"maintainers": [
{
"name": "Matthew Callis",
"email": "matthew.callis@gmail.com"
}
],
"module": "src/duration-input.js",
"main": "lib/duration-input.js",

@@ -21,2 +28,8 @@ "files": [

},
"repositories": [
{
"type": "git",
"url": "https://github.com/MatthewCallis/duration-input"
}
],
"bugs": {

@@ -33,27 +46,28 @@ "url": "https://github.com/MatthewCallis/duration-input/issues"

"devDependencies": {
"ava": "^0.16.0",
"babel-cli": "^6.18.0",
"babel-plugin-external-helpers": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-es2015-rollup": "^1.2.0",
"babel-register": "^6.18.0",
"browser-env": "^2.0.15",
"codeclimate-test-reporter": "^0.4.0",
"coveralls": "^2.11.14",
"esdoc": "^0.4.8",
"eslint": "^3.9.1",
"eslint-config-airbnb": "^12.0.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"ava": "^0.23.0",
"babel-cli": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2015-rollup": "^3.0.0",
"babel-register": "^6.26.0",
"browser-env": "^3.2.1",
"codeclimate-test-reporter": "^0.5.0",
"coveralls": "^3.0.0",
"esdoc": "^1.0.3",
"eslint": "^4.10.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-loader": "^1.9.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-no-inferred-method-name": "^1.0.2",
"eslint-plugin-react": "^6.4.1",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-xss": "^0.1.8",
"nyc": "^8.4.0",
"nyc": "^11.3.0",
"precommit-hook-eslint": "^3.0.0",
"rollup": "^0.36.3",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-eslint": "^3.0.0",
"rollup-plugin-json": "^2.0.2",
"sinon": "^1.17.6"
"rollup": "^0.50.0",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-eslint": "^4.0.0",
"rollup-plugin-json": "^2.3.0",
"sinon": "^4.0.2"
},

@@ -63,2 +77,8 @@ "preferGlobal": false,

"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "https://opensource.org/licenses/MIT"
}
],
"jam": {

@@ -65,0 +85,0 @@ "dependencies": {}

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