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

@immomio/api-library

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@immomio/api-library - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

lib/utils/date.d.ts

5

lib/appointments/resolver.js

@@ -48,2 +48,3 @@ "use strict";

var api_1 = require("../api");
var date_1 = require("../utils/date");
var fetch_1 = require("../utils/fetch");

@@ -58,3 +59,3 @@ var filter_1 = require("../utils/filter");

exports.convertAppointment = function (data) {
var appointment = __assign({}, data, { date: new Date(data.date) });
var appointment = __assign({}, data, { date: date_1.parseDate(data.date) });
return appointment;

@@ -138,3 +139,3 @@ };

if (date === void 0) { date = new Date(); }
return new Date(appointment.date) > date;
return date_1.parseDate(appointment.date) > date;
};

@@ -141,0 +142,0 @@ var hasAppointmentFreeSlots = function (appointment) {

1

lib/utils/index.d.ts
export * from './fetch';
export * from './jsonHal';
export * from './date';

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

__export(require("./jsonHal"));
__export(require("./date"));
//# sourceMappingURL=index.js.map
{
"name": "@immomio/api-library",
"version": "1.2.1",
"version": "1.2.2",
"description": "Immomio library to access the immomio-API",

@@ -5,0 +5,0 @@ "engineStrict": true,

@@ -5,2 +5,3 @@

import { ProfileUrl } from '../profiles'
import { parseDate } from '../utils/date'
import { fetch } from '../utils/fetch'

@@ -70,3 +71,3 @@ import { filter } from '../utils/filter'

...data,
date: new Date(data.date),
date: parseDate(data.date),
}

@@ -125,3 +126,3 @@ return appointment

const isAppointmentAfterDate = (appointment: Appointment, date: Date = new Date()) =>
new Date(appointment.date) > date
parseDate(appointment.date) > date

@@ -128,0 +129,0 @@ /** checks if an appointment has a slot open */

export * from './fetch'
export * from './jsonHal'
export * from './date'

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