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

@date-vir/duration

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-vir/duration - npm Package Compare versions

Comparing version 6.0.1 to 7.0.0

dist/units/date-unit.d.ts

2

dist/convert-duration.js
import { Duration as LuxonDuration } from 'luxon';
import { flattenUnitSelection, } from './duration-selection.js';
import { DurationUnit, orderedDurationUnits } from './duration-unit.js';
import { DurationUnit, orderedDurationUnits } from './units/duration-unit.js';
/**

@@ -5,0 +5,0 @@ * This is mostly copied from `@augment-vir/common` so that the `@date-vir/duration` package doesn't

@@ -1,3 +0,3 @@

import { DurationUnit } from './duration-unit.js';
import { type AllDurations } from './duration.js';
import { DurationUnit } from './units/duration-unit.js';
/**

@@ -4,0 +4,0 @@ * Select a set of duration units to use in {@link DurationBySelection}.

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

import { orderedDurationUnits } from './duration-unit.js';
import { orderedDurationUnits } from './units/duration-unit.js';
/**

@@ -3,0 +3,0 @@ * Reduce a {@link DurationUnitSelection} object into an array of the selected units, in order from

import type { RequireAtLeastOne, UnionToIntersection } from 'type-fest';
import { DurationUnit } from './duration-unit.js';
import { DurationUnit } from './units/duration-unit.js';
/** Copied from `@augment-vir/common` so this package doesn't depend on augment-vir. */

@@ -11,3 +11,3 @@ type RequiredAndNotNull<T> = {

*
* @category Util
* @category Duration
*/

@@ -42,3 +42,3 @@ export type AnyDuration = Partial<Record<DurationUnit, number | undefined>>;

*
* @category Zero
* @category Constants
*/

@@ -59,3 +59,3 @@ export declare const zeroDuration: {

*
* @category Zero
* @category Constants
*/

@@ -62,0 +62,0 @@ export declare const emptyDuration: {

/**
* An object with all {@link DurationUnit} keys set to `0`.
*
* @category Zero
* @category Constants
*/

@@ -20,4 +20,4 @@ export const zeroDuration = {

*
* @category Zero
* @category Constants
*/
export const emptyDuration = zeroDuration;
import { convertDuration } from './convert-duration.js';
import { orderedDurationUnits } from './duration-unit.js';
import { orderedDurationUnits } from './units/duration-unit.js';
/**

@@ -4,0 +4,0 @@ * Set each selected duration unit to the full value of the full given duration.

export * from './convert-duration.js';
export * from './duration-selection.js';
export * from './duration-unit.js';
export * from './duration.js';
export * from './equalize-duration.js';
export * from './round-options.js';
export * from './units/date-unit.js';
export * from './units/day-of-week.js';
export * from './units/duration-unit.js';
export * from './units/month.js';
export * from './units/time-units.js';
export * from './units/unit-assertions.js';
export * from './convert-duration.js';
export * from './duration-selection.js';
export * from './duration-unit.js';
export * from './duration.js';
export * from './equalize-duration.js';
export * from './round-options.js';
export * from './units/date-unit.js';
export * from './units/day-of-week.js';
export * from './units/duration-unit.js';
export * from './units/month.js';
export * from './units/time-units.js';
export * from './units/unit-assertions.js';
{
"name": "@date-vir/duration",
"version": "6.0.1",
"version": "7.0.0",
"description": "Durations units an utils for date-vir.",

@@ -41,5 +41,5 @@ "keywords": [

"devDependencies": {
"@augment-vir/assert": "^30.1.0",
"@augment-vir/test": "^30.1.0",
"@web/dev-server-esbuild": "^1.0.2",
"@augment-vir/assert": "^30.6.2",
"@augment-vir/test": "^30.6.2",
"@web/dev-server-esbuild": "^1.0.3",
"@web/test-runner": "^0.19.0",

@@ -49,5 +49,5 @@ "@web/test-runner-commands": "^0.9.0",

"@web/test-runner-visual-regression": "^0.10.0",
"istanbul-smart-text-reporter": "^1.1.4",
"istanbul-smart-text-reporter": "^1.1.5",
"markdown-code-example-inserter": "^3.0.0",
"typedoc": "^0.26.7"
"typedoc": "^0.26.11"
},

@@ -54,0 +54,0 @@ "engines": {

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