Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@borodindmitriy/base-code

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borodindmitriy/base-code - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+2
lib/utils/overlaps.d.ts
import { Moment } from "moment";
export declare function overlaps(x_0: Moment, x_1: Moment, y_0: Moment, y_1: Moment): boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function overlaps(x_0, x_1, y_0, y_1) {
let hasOverlaps = false;
if (y_0.isSameOrAfter(x_0) && y_0.isSameOrBefore(x_1)) {
hasOverlaps = true;
}
if (y_1.isSameOrAfter(x_0) && y_1.isSameOrBefore(x_1)) {
hasOverlaps = true;
}
return hasOverlaps;
}
exports.overlaps = overlaps;
+1
-0

@@ -19,1 +19,2 @@ export { isString } from "./utils/isType";

export { uploadHTML } from "./utils/uploadHTML";
export { overlaps } from "./utils/overlaps";

@@ -39,1 +39,3 @@ "use strict";

exports.uploadHTML = uploadHTML_1.uploadHTML;
var overlaps_1 = require("./utils/overlaps");
exports.overlaps = overlaps_1.overlaps;
+2
-2

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

import * as moment from "moment";
export declare function dateOnly(date: moment.Moment): moment.Moment;
import { Moment } from "moment";
export declare function dateOnly(date: Moment): Moment;

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

import * as moment from "moment";
export declare function minutesToTimeOnly(minutes: number): moment.Moment;
import { Moment } from "moment";
export declare function minutesToTimeOnly(minutes: number): Moment;

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

import * as moment from "moment";
export declare function timeOnly(date: moment.Moment): moment.Moment;
import { Moment } from "moment";
export declare function timeOnly(date: Moment): Moment;
{
"name": "@borodindmitriy/base-code",
"description": "Common classes's library.",
"version": "1.0.4",
"version": "1.0.5",
"engines": {

@@ -9,2 +9,4 @@ "node": ">=8",

},
"main": "lib",
"types": "lib",
"files": [

@@ -46,3 +48,2 @@ "lib"

"@types/node": "9.6.6",
"@types/twix": "0.6.34",
"bson": "2.0.5",

@@ -60,3 +61,2 @@ "chai": "4.1.2",

"tslint-no-circular-imports": "0.3.0",
"twix": "1.2.1",
"typescript": "2.8.3"

@@ -67,3 +67,2 @@ },

"tslib": ">=1.9.0",
"twix": ">=1.2.1",
"bson": ">=2.0.5"

@@ -70,0 +69,0 @@ },