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.0.18 to 1.1.0

10

package.json
{
"name": "@immomio/api-library",
"version": "1.0.18",
"version": "1.1.0",
"description": "Immomio library to access the immomio-API",

@@ -20,3 +20,2 @@ "engineStrict": true,

"tslint": "~5.6.0",
"tsutils": "~2.8.1",
"typedoc": "^0.8.0",

@@ -26,3 +25,3 @@ "typescript": "~2.4.2"

"main": "lib/main.js",
"typings": "lib/main",
"typings": "lib/main.d.ts",
"files": [

@@ -33,3 +32,3 @@ "lib/",

"scripts": {
"build": "tsc -p tsconfig.release.json",
"build": "tsc -p tsconfig.release.json && mv lib/src/** lib/ && rm -fr lib/src",
"clean": "rimraf coverage build tmp lib",

@@ -52,4 +51,3 @@ "clean:docs": "rimraf docs",

"dependencies": {
"isomorphic-fetch": "^2.2.1",
"tslib": "^1.7.1"
"isomorphic-fetch": "^2.2.1"
},

@@ -56,0 +54,0 @@ "typescript": {

12

src/appointments/resolver.ts
import { Api, api as defaultApi } from '../api'
import { Flat } from '../flats'
import { FlatUrl } from '../flats'
import { ProfileUrl } from '../profiles'

@@ -23,3 +23,3 @@ import { fetch } from '../utils/fetch'

expired: boolean
flat: Flat
flat: FlatUrl
maxInviteeCount: number

@@ -124,3 +124,3 @@ readonly currentInviteeCount: number

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

@@ -132,4 +132,4 @@ /** checks if an appointment has a slot open */

/** factory to generate functions that check if an appointment connects to a specific flat */
const appointmentForFlatFilter = (flat: Flat) => (appointment: Appointment) =>
appointment.flat.id === flat.id
const appointmentForFlatFilter = (flat: FlatUrl) => (appointment: Appointment) =>
appointment.flat === flat

@@ -145,3 +145,3 @@ /**

validAppointments: Appointment[],
flat: Flat,
flat: FlatUrl,
): Appointment[] => {

@@ -148,0 +148,0 @@ const flatFilter = appointmentForFlatFilter(flat)

@@ -7,4 +7,4 @@

export interface Flat {
id: string
ID: string
name: string
}
import { api, Api } from './api'
import * as appointments from './appointments'

@@ -7,6 +6,4 @@ import * as utils from './utils'

export {
api,
Api,
appointments,
utils,
}

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

const headers: Headers = new Headers()
headers.append('Accept', 'application/json+hal')
headers.append('Content-Type', 'application/json')

@@ -10,0 +11,0 @@

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