libraries.io
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.6.1](https://github.com/ffflorian/api-clients/tree/master/packages/libraries.io/compare/libraries.io@1.6.0...libraries.io@1.6.1) (2019-07-11) | ||
**Note:** Version bump only for package libraries.io | ||
# [1.6.0](https://github.com/ffflorian/api-clients/tree/master/packages/libraries.io/compare/libraries.io@1.5.0...libraries.io@1.6.0) (2019-06-09) | ||
@@ -8,0 +16,0 @@ |
@@ -7,3 +7,2 @@ import { APIClient } from '@ffflorian/api-client'; | ||
constructor(apiClient: APIClient, options: ClientOptions); | ||
protected checkApiKey(apiName?: string): void; | ||
/** | ||
@@ -19,2 +18,3 @@ * Set a new API URL. | ||
setApiKey(apiKey: string): void; | ||
protected checkApiKey(apiName?: string): void; | ||
} |
@@ -8,8 +8,2 @@ "use strict"; | ||
} | ||
APIBase.prototype.checkApiKey = function (apiName) { | ||
apiName = "the \"" + apiName + "\"" || 'this'; | ||
if (!this.options.apiKey) { | ||
throw new Error("An API key needs to be set in order to use " + apiName + " API"); | ||
} | ||
}; | ||
/** | ||
@@ -29,2 +23,8 @@ * Set a new API URL. | ||
}; | ||
APIBase.prototype.checkApiKey = function (apiName) { | ||
apiName = "the \"" + apiName + "\"" || 'this'; | ||
if (!this.options.apiKey) { | ||
throw new Error("An API key needs to be set in order to use " + apiName + " API"); | ||
} | ||
}; | ||
return APIBase; | ||
@@ -31,0 +31,0 @@ }()); |
{ | ||
"author": "Florian Keller <github@floriankeller.de>", | ||
"dependencies": { | ||
"@ffflorian/api-client": "0.5.0" | ||
"@ffflorian/api-client": "0.5.1" | ||
}, | ||
@@ -12,5 +12,5 @@ "description": "A libraries.io API client", | ||
"rimraf": "2.6.3", | ||
"ts-node": "8.2.0", | ||
"ts-node": "8.3.0", | ||
"typedoc": "0.14.2", | ||
"typescript": "3.5.1" | ||
"typescript": "3.5.3" | ||
}, | ||
@@ -37,4 +37,4 @@ "files": [ | ||
}, | ||
"version": "1.6.0", | ||
"gitHead": "1f512e6aba28e3808a59c5021a3f2523b28f52ef" | ||
"version": "1.6.1", | ||
"gitHead": "f780bea9c48c3ce89768af6e745de0c0420b3a28" | ||
} |
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
70914
+ Added@ffflorian/api-client@0.5.1(transitive)
- Removed@ffflorian/api-client@0.5.0(transitive)
Updated@ffflorian/api-client@0.5.1