Socket
Socket
Sign inDemoInstall

tinyduration

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyduration - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

6

.eslintrc.js

@@ -9,3 +9,3 @@ module.exports = {

modules: true
}
},
},

@@ -20,5 +20,5 @@ plugins: [

'plugin:@typescript-eslint/recommended',
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
'plugin:jest/recommended',
'prettier',
],

@@ -30,4 +30,4 @@ rules: {

"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
"jest/valid-expect": "error",
}
};

@@ -25,3 +25,3 @@ "use strict";

r('seconds', 'S'),
')?',
')?', // end optional time
].join(''));

@@ -28,0 +28,0 @@ function parseNum(s) {

{
"name": "tinyduration",
"version": "3.2.0",
"version": "3.2.1",
"description": "ISO-8601 duration parsing and serialization",

@@ -25,15 +25,15 @@ "main": "dist/index.js",

"devDependencies": {
"@types/jest": "^25.1.4",
"@types/node": "^13.9.1",
"@typescript-eslint/eslint-plugin": "^2.24.0",
"@typescript-eslint/parser": "^2.24.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-prettier": "^3.1.2",
"fast-check": "^2.4.0",
"jest": "^25.1.0",
"prettier": "^1.19.1",
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
"@types/jest": "^26.0.22",
"@types/node": "^14.14.37",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jest": "^24.3.2",
"eslint-plugin-prettier": "^3.3.1",
"fast-check": "^2.14.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.5.4",
"typescript": "^4.2.3"
},

@@ -40,0 +40,0 @@ "scripts": {

@@ -11,2 +11,4 @@

This lib has 0 dependencies.
## Installation

@@ -98,2 +100,2 @@ - NPM: `npm install --save tinyduration`

# License
MIT
MIT

@@ -34,3 +34,3 @@ import * as fc from 'fast-check'

const durationPartArb = fc.option(
fc.float().filter(value => value >= 0),
fc.float().filter((value) => value >= 0),
{ nil: undefined },

@@ -51,3 +51,3 @@ )

fc.assert(
fc.property(durationArb, duration => {
fc.property(durationArb, (duration) => {
const iso8601 = serialize(duration)

@@ -64,3 +64,3 @@

testCasesInvalid.forEach(input => {
testCasesInvalid.forEach((input) => {
test(`parse invalid - ${input}`, () => {

@@ -67,0 +67,0 @@ expect(() => parse(input)).toThrow(InvalidDurationError)

Sorry, the diff of this file is not supported yet

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