@donmahallem/flow-api-types
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
add(day, force = false, key = null) { | ||
add(day, force = false, key) { | ||
const dayKey = key ? key : this.generateKey(day); | ||
@@ -24,0 +24,0 @@ if (this.data[dayKey] && force === false) { |
{ | ||
"name": "@donmahallem/flow-api-types", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Api Types and helper for FlowApi", | ||
@@ -68,14 +68,14 @@ "main": "dist/index.js", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^11.12.2", | ||
"@types/node": "^11.13.4", | ||
"@types/sinon": "^7.0.11", | ||
"chai": "^4.2.0", | ||
"highlight.js": "^9.14.2", | ||
"mocha": "^6.0.0", | ||
"nodemon": "^1.18.0", | ||
"mocha": "^6.1.3", | ||
"nodemon": "^1.18.11", | ||
"nyc": "^13.1.0", | ||
"sinon": "^7.3.1", | ||
"ts-node": "^8.0.3", | ||
"tslint": "^5.14.0", | ||
"ts-node": "^8.1.0", | ||
"tslint": "^5.15.0", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.4.1" | ||
"typescript": "^3.4.3" | ||
}, | ||
@@ -82,0 +82,0 @@ "nyc": { |
import { expect } from "chai"; | ||
import "mocha"; | ||
import { IActivityGraphData } from "./index"; | ||
@@ -5,0 +4,0 @@ describe("model/index", () => { |
@@ -21,3 +21,3 @@ import { IDayData, IDaySummary } from "./model"; | ||
*/ | ||
public add(day: IDayData, force: boolean = false, key: string = null): void { | ||
public add(day: IDayData, force: boolean = false, key?: string): void { | ||
const dayKey: string = key ? key : this.generateKey(day); | ||
@@ -24,0 +24,0 @@ if (this.data[dayKey] && force === false) { |
Sorry, the diff of this file is not supported yet
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
75206
1514