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

@naturalcycles/time-lib

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/time-lib - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

dist-esm/dayjsRange.js

8

dist-esm/dayjs.full.js
import * as dayjsLib from 'dayjs';
// const dayjsLib = require('dayjs')
const dayjs = dayjsLib;
import { defaultPlugins } from './plugin/default';
import { isoWeekdayPlugin } from './plugin/isoWeekday';
import { weekOfYearPlugin } from './plugin/weekOfYear';
import * as enGB from 'dayjs/locale/en-gb';
import * as isBetween from 'dayjs/plugin/isBetween';

@@ -16,2 +14,5 @@ import * as isSameOrAfter from 'dayjs/plugin/isSameOrAfter';

import * as utc from 'dayjs/plugin/utc';
import { defaultPlugins } from './plugin/default';
import { isoWeekdayPlugin } from './plugin/isoWeekday';
import { weekOfYearPlugin } from './plugin/weekOfYear';
dayjsLib.extend(utc);

@@ -31,4 +32,3 @@ dayjsLib.extend(isSameOrAfter);

// Set en-gb by default, to have e.g Monday as fdow
import * as enGB from 'dayjs/locale/en-gb';
dayjsLib.locale(enGB);
export { dayjs };
import { dayjs } from './dayjs.full';
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default';
import { DAYJS_TIME_HM, DAYJS_TIME_HMS, DAYJS_ISO_DATE, DAYJS_COMPACT_DATE, DAYJS_COMPACT_TIME, DAYJS_COMPACT_TIME_SECONDS, } from './plugin/default';
import { dayjsRange, dayjsRangeIncl, dayjsRangeInclISODate, dayjsRangeISODate } from './dayjsRange';
export { dayjs, // should be imported from dayjs.full, cause it's an extended version
DAYJS_TIME_HM, DAYJS_TIME_HMS,
DAYJS_TIME_HM, DAYJS_TIME_HMS, DAYJS_ISO_DATE, DAYJS_COMPACT_DATE, DAYJS_COMPACT_TIME, DAYJS_COMPACT_TIME_SECONDS, dayjsRange, dayjsRangeIncl, dayjsRangeInclISODate, dayjsRangeISODate,
// loadDayjsLocales,
// loadDayjsPlugins,
};

@@ -8,5 +8,3 @@ "use strict";

exports.dayjs = dayjs;
const default_1 = require("./plugin/default");
const isoWeekday_1 = require("./plugin/isoWeekday");
const weekOfYear_1 = require("./plugin/weekOfYear");
const enGB = require("dayjs/locale/en-gb");
const isBetween = require("dayjs/plugin/isBetween");

@@ -21,2 +19,5 @@ const isSameOrAfter = require("dayjs/plugin/isSameOrAfter");

const utc = require("dayjs/plugin/utc");
const default_1 = require("./plugin/default");
const isoWeekday_1 = require("./plugin/isoWeekday");
const weekOfYear_1 = require("./plugin/weekOfYear");
dayjsLib.extend(utc);

@@ -36,4 +37,2 @@ dayjsLib.extend(isSameOrAfter);

// Set en-gb by default, to have e.g Monday as fdow
const enGB = require("dayjs/locale/en-gb");
dayjsLib.locale(enGB);
//# sourceMappingURL=dayjs.full.js.map
import { dayjs } from './dayjs.full';
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default';
import { IDayjs, IDayjsFactory, IDayjsLocale } from './types';
export type { IDayjsFactory, IDayjs, IDayjsLocale };
import { DAYJS_TIME_HM, DAYJS_TIME_HMS, DAYJS_ISO_DATE, DAYJS_COMPACT_DATE, DAYJS_COMPACT_TIME, DAYJS_COMPACT_TIME_SECONDS } from './plugin/default';
import { IDayjs, IDayjsFactory, IDayjsLocale, ConfigType, OpUnitType } from './types';
import { dayjsRange, dayjsRangeIncl, dayjsRangeInclISODate, dayjsRangeISODate } from './dayjsRange';
export type { IDayjsFactory, IDayjs, IDayjsLocale, ConfigType, OpUnitType };
export { dayjs, // should be imported from dayjs.full, cause it's an extended version
DAYJS_TIME_HM, DAYJS_TIME_HMS, };
DAYJS_TIME_HM, DAYJS_TIME_HMS, DAYJS_ISO_DATE, DAYJS_COMPACT_DATE, DAYJS_COMPACT_TIME, DAYJS_COMPACT_TIME_SECONDS, dayjsRange, dayjsRangeIncl, dayjsRangeInclISODate, dayjsRangeISODate, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DAYJS_TIME_HMS = exports.DAYJS_TIME_HM = exports.dayjs = void 0;
exports.dayjsRangeISODate = exports.dayjsRangeInclISODate = exports.dayjsRangeIncl = exports.dayjsRange = exports.DAYJS_COMPACT_TIME_SECONDS = exports.DAYJS_COMPACT_TIME = exports.DAYJS_COMPACT_DATE = exports.DAYJS_ISO_DATE = exports.DAYJS_TIME_HMS = exports.DAYJS_TIME_HM = exports.dayjs = void 0;
const dayjs_full_1 = require("./dayjs.full");

@@ -9,2 +9,10 @@ Object.defineProperty(exports, "dayjs", { enumerable: true, get: function () { return dayjs_full_1.dayjs; } });

Object.defineProperty(exports, "DAYJS_TIME_HMS", { enumerable: true, get: function () { return default_1.DAYJS_TIME_HMS; } });
//# sourceMappingURL=index.js.map
Object.defineProperty(exports, "DAYJS_ISO_DATE", { enumerable: true, get: function () { return default_1.DAYJS_ISO_DATE; } });
Object.defineProperty(exports, "DAYJS_COMPACT_DATE", { enumerable: true, get: function () { return default_1.DAYJS_COMPACT_DATE; } });
Object.defineProperty(exports, "DAYJS_COMPACT_TIME", { enumerable: true, get: function () { return default_1.DAYJS_COMPACT_TIME; } });
Object.defineProperty(exports, "DAYJS_COMPACT_TIME_SECONDS", { enumerable: true, get: function () { return default_1.DAYJS_COMPACT_TIME_SECONDS; } });
const dayjsRange_1 = require("./dayjsRange");
Object.defineProperty(exports, "dayjsRange", { enumerable: true, get: function () { return dayjsRange_1.dayjsRange; } });
Object.defineProperty(exports, "dayjsRangeIncl", { enumerable: true, get: function () { return dayjsRange_1.dayjsRangeIncl; } });
Object.defineProperty(exports, "dayjsRangeInclISODate", { enumerable: true, get: function () { return dayjsRange_1.dayjsRangeInclISODate; } });
Object.defineProperty(exports, "dayjsRangeISODate", { enumerable: true, get: function () { return dayjsRange_1.dayjsRangeISODate; } });

@@ -11,2 +11,1 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=locales.js.map

@@ -38,2 +38,1 @@ "use strict";

exports.defaultPlugins = defaultPlugins;
//# sourceMappingURL=default.js.map

@@ -18,2 +18,1 @@ "use strict";

exports.isoWeekdayPlugin = isoWeekdayPlugin;
//# sourceMappingURL=isoWeekday.js.map

@@ -70,2 +70,1 @@ "use strict";

exports.weekOfYearPlugin = weekOfYearPlugin;
//# sourceMappingURL=weekOfYear.js.map

@@ -13,2 +13,1 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=plugins.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map

@@ -8,2 +8,3 @@ {

"dependencies": {
"@naturalcycles/js-lib": "^14.6.1",
"dayjs": "^1.8.26"

@@ -43,5 +44,5 @@ },

"engines": {
"node": ">=10.13"
"node": ">=14.15.0"
},
"version": "3.3.0",
"version": "3.4.0",
"description": "Date/time related API, based on Day.js",

@@ -48,0 +49,0 @@ "keywords": [

@@ -26,8 +26,1 @@ ## @naturalcycles/time-lib

TODO
# Packaging
- `engines.node >= 10.13`: Latest Node.js LTS
- `main: dist/index.js`: commonjs, es2015
- `types: dist/index.d.ts`: typescript types
- `/src` folder with source `*.ts` files included

@@ -5,6 +5,3 @@ import * as dayjsLib from 'dayjs'

import { defaultPlugins } from './plugin/default'
import { isoWeekdayPlugin } from './plugin/isoWeekday'
import { weekOfYearPlugin } from './plugin/weekOfYear'
import type { IDayjsFactory } from './types'
import * as enGB from 'dayjs/locale/en-gb'

@@ -20,2 +17,6 @@ import * as isBetween from 'dayjs/plugin/isBetween'

import * as utc from 'dayjs/plugin/utc'
import { defaultPlugins } from './plugin/default'
import { isoWeekdayPlugin } from './plugin/isoWeekday'
import { weekOfYearPlugin } from './plugin/weekOfYear'
import type { IDayjsFactory } from './types'
dayjsLib.extend(utc)

@@ -36,5 +37,4 @@ dayjsLib.extend(isSameOrAfter)

// Set en-gb by default, to have e.g Monday as fdow
import * as enGB from 'dayjs/locale/en-gb'
dayjsLib.locale(enGB)
export { dayjs }
import { dayjs } from './dayjs.full'
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default'
import { IDayjs, IDayjsFactory, IDayjsLocale } from './types'
import {
DAYJS_TIME_HM,
DAYJS_TIME_HMS,
DAYJS_ISO_DATE,
DAYJS_COMPACT_DATE,
DAYJS_COMPACT_TIME,
DAYJS_COMPACT_TIME_SECONDS,
} from './plugin/default'
import { IDayjs, IDayjsFactory, IDayjsLocale, ConfigType, OpUnitType } from './types'
import { dayjsRange, dayjsRangeIncl, dayjsRangeInclISODate, dayjsRangeISODate } from './dayjsRange'
export type { IDayjsFactory, IDayjs, IDayjsLocale }
export type { IDayjsFactory, IDayjs, IDayjsLocale, ConfigType, OpUnitType }

@@ -11,4 +19,12 @@ export {

DAYJS_TIME_HMS,
DAYJS_ISO_DATE,
DAYJS_COMPACT_DATE,
DAYJS_COMPACT_TIME,
DAYJS_COMPACT_TIME_SECONDS,
dayjsRange,
dayjsRangeIncl,
dayjsRangeInclISODate,
dayjsRangeISODate,
// loadDayjsLocales,
// loadDayjsPlugins,
}
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