New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.9.0 to 1.10.0

7

CHANGELOG.md

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

# [1.10.0](https://github.com/NaturalCycles/time-lib/compare/v1.9.0...v1.10.0) (2020-03-04)
### Features
* toCompactDate() ([c631b23](https://github.com/NaturalCycles/time-lib/commit/c631b2373a225155473b0f41b1c7b649a47f2c5b))
# [1.9.0](https://github.com/NaturalCycles/time-lib/compare/v1.8.0...v1.9.0) (2020-02-24)

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

3

dist-esm/index.js
import { dayjs, Dayjs } from './dayjs.full';
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default';
import { ms, since, TS_2018_06_21 } from './time.util';
export { dayjs, // should be imported from dayjs.full, cause it's an extended version
Dayjs, TS_2018_06_21, since, ms, };
Dayjs, TS_2018_06_21, since, ms, DAYJS_TIME_HM, DAYJS_TIME_HMS, };
//# sourceMappingURL=index.js.map
export const DAYJS_ISO_DATE = 'YYYY-MM-DD';
export const DAYJS_COMPACT_DATE = 'YYYYMMDD';
export const DAYJS_TIME_HMS = 'HH:mm:ss';

@@ -17,2 +18,5 @@ export const DAYJS_TIME_HM = 'HH:mm';

};
dayjsClass.prototype.toCompactDate = function () {
return this.format(DAYJS_COMPACT_DATE);
};
dayjsClass.prototype.unixMillis = function () {

@@ -19,0 +23,0 @@ return this.valueOf();

import { dayjs, Dayjs, DayjsLocale } from './dayjs.full';
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default';
import { ms, since, TS_2018_06_21 } from './time.util';
export { dayjs, // should be imported from dayjs.full, cause it's an extended version
Dayjs, DayjsLocale, TS_2018_06_21, since, ms, };
Dayjs, DayjsLocale, TS_2018_06_21, since, ms, DAYJS_TIME_HM, DAYJS_TIME_HMS, };

@@ -6,2 +6,5 @@ "use strict";

exports.Dayjs = dayjs_full_1.Dayjs;
const default_1 = require("./plugin/default");
exports.DAYJS_TIME_HM = default_1.DAYJS_TIME_HM;
exports.DAYJS_TIME_HMS = default_1.DAYJS_TIME_HMS;
const time_util_1 = require("./time.util");

@@ -8,0 +11,0 @@ exports.ms = time_util_1.ms;

@@ -18,2 +18,6 @@ import { PluginFunc } from 'dayjs';

/**
* Returns e.g `20180621`
*/
toCompactDate(): string;
/**
* Returns unixtime in milliseconds.

@@ -29,2 +33,3 @@ */

export declare const DAYJS_ISO_DATE = "YYYY-MM-DD";
export declare const DAYJS_COMPACT_DATE = "YYYYMMDD";
export declare const DAYJS_TIME_HMS = "HH:mm:ss";

@@ -31,0 +36,0 @@ export declare const DAYJS_TIME_HM = "HH:mm";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DAYJS_ISO_DATE = 'YYYY-MM-DD';
exports.DAYJS_COMPACT_DATE = 'YYYYMMDD';
exports.DAYJS_TIME_HMS = 'HH:mm:ss';

@@ -19,2 +20,5 @@ exports.DAYJS_TIME_HM = 'HH:mm';

};
dayjsClass.prototype.toCompactDate = function () {
return this.format(exports.DAYJS_COMPACT_DATE);
};
dayjsClass.prototype.unixMillis = function () {

@@ -21,0 +25,0 @@ return this.valueOf();

@@ -11,3 +11,3 @@ {

"@naturalcycles/dev-lib": "^10.2.0",
"@naturalcycles/js-lib": "^8.2.1",
"@naturalcycles/js-lib": "^9.0.1",
"@naturalcycles/test-lib": "^1.0.0",

@@ -43,3 +43,3 @@ "@types/node": "^13.7.0",

},
"version": "1.9.0",
"version": "1.10.0",
"description": "Date/time related API, based on DayJS",

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

import { dayjs, Dayjs, DayjsLocale } from './dayjs.full'
import { DAYJS_TIME_HM, DAYJS_TIME_HMS } from './plugin/default'
import { ms, since, TS_2018_06_21 } from './time.util'

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

ms,
DAYJS_TIME_HM,
DAYJS_TIME_HMS,
}

@@ -22,2 +22,7 @@ import { Dayjs, PluginFunc } from 'dayjs'

/**
* Returns e.g `20180621`
*/
toCompactDate(): string
/**
* Returns unixtime in milliseconds.

@@ -45,2 +50,3 @@ */

export const DAYJS_ISO_DATE = 'YYYY-MM-DD'
export const DAYJS_COMPACT_DATE = 'YYYYMMDD'
export const DAYJS_TIME_HMS = 'HH:mm:ss'

@@ -65,2 +71,6 @@ export const DAYJS_TIME_HM = 'HH:mm'

dayjsClass.prototype.toCompactDate = function(this: Dayjs): string {
return this.format(DAYJS_COMPACT_DATE)
}
dayjsClass.prototype.unixMillis = function(this: Dayjs): number {

@@ -67,0 +77,0 @@ return this.valueOf()

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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