@immomio/api-library
Advanced tools
Comparing version 1.0.18 to 1.1.0
{ | ||
"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": { |
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
1
12
0
14524
15
319
- Removedtslib@^1.7.1
- Removedtslib@1.14.1(transitive)