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.2.0 to 3.2.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [3.2.1](https://github.com/NaturalCycles/time-lib/compare/v3.2.0...v3.2.1) (2021-05-26)
### Bug Fixes
* deps ([85f90a6](https://github.com/NaturalCycles/time-lib/commit/85f90a6b4931ee0e803a9ce9cba269dd215510e9))
# [3.2.0](https://github.com/NaturalCycles/time-lib/compare/v3.1.0...v3.2.0) (2020-12-18)

@@ -2,0 +9,0 @@

5

dist-esm/index.js
import { dayjs } from './dayjs.full';
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default';
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,
// loadDayjsLocales,
// loadDayjsPlugins,
};

4

dist/types.d.ts

@@ -24,3 +24,3 @@ export declare type ConfigType = string | number | Date | IDayjs;

min(...dayjs: IDayjs[]): IDayjs;
updateLocale(localeName: string, customConfig: object): any;
updateLocale(localeName: string, customConfig: Record<string, any>): any;
Ls: {

@@ -77,2 +77,3 @@ [localeName: string]: IDayjsLocale;

* or `2018-06-21 17:54` (with seconds=false)
*
* @param seconds defauls to true

@@ -96,2 +97,3 @@ */

* Shortcut for .startOf('day')
*
* @deprecated, cause it's not a well-defined method. Should be a Factory-method instead.

@@ -98,0 +100,0 @@ */

@@ -11,7 +11,7 @@ {

"@naturalcycles/bench-lib": "^1.0.4",
"@naturalcycles/dev-lib": "^10.2.0",
"@naturalcycles/dev-lib": "^11.0.7",
"@naturalcycles/js-lib": "^14.6.1",
"@naturalcycles/nodejs-lib": "^12.11.3",
"@types/node": "^14.0.1",
"jest": "^26.0.1",
"@types/node": "^15.6.1",
"jest": "^27.0.1",
"moment": "^2.24.0"

@@ -44,3 +44,3 @@ },

},
"version": "3.2.0",
"version": "3.2.1",
"description": "Date/time related API, based on Day.js",

@@ -47,0 +47,0 @@ "keywords": [

// import dayjsLib = require('dayjs')
const dayjsLib = require('dayjs')
const dayjs: IDayjsFactory = dayjsLib as any
const dayjs: IDayjsFactory = dayjsLib

@@ -5,0 +5,0 @@ import { defaultPlugins } from './plugin/default'

@@ -46,3 +46,3 @@ export type ConfigType = string | number | Date | IDayjs

updateLocale(localeName: string, customConfig: object): any
updateLocale(localeName: string, customConfig: Record<string, any>): any
Ls: { [localeName: string]: IDayjsLocale }

@@ -144,2 +144,3 @@ }

* or `2018-06-21 17:54` (with seconds=false)
*
* @param seconds defauls to true

@@ -167,2 +168,3 @@ */

* Shortcut for .startOf('day')
*
* @deprecated, cause it's not a well-defined method. Should be a Factory-method instead.

@@ -169,0 +171,0 @@ */

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