@cognite/sdk-core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.0.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-core@1.0.0...@cognite/sdk-core@1.0.1) (2020-09-10) | ||
### Bug Fixes | ||
* exports from packages, add guide for making derived SDKs ([#421](https://github.com/cognitedata/cognite-sdk-js/issues/421)) ([a3a2eb0](https://github.com/cognitedata/cognite-sdk-js/commit/a3a2eb03645733c289591b187f19e55b5294fbc7)) | ||
# 1.0.0 (2020-08-03) | ||
@@ -8,0 +19,0 @@ |
@@ -37,3 +37,2 @@ import { LoginAPI } from './api/login/loginApi'; | ||
export declare function throwReLogginError(): void; | ||
/** @hidden */ | ||
export default class BaseCogniteClient { | ||
@@ -40,0 +39,0 @@ get login(): LoginAPI; |
@@ -13,2 +13,14 @@ export declare class BasicHttpClient { | ||
private defaultHeaders; | ||
/** | ||
* A basic http client with the option of adding default headers, | ||
* and the option of using a baseUrl. | ||
* Note: If the path given starts with `https://`, the baseUrl is ignored. | ||
* | ||
* It handles query parameters, and request body data which gets encoded as json if | ||
* needed. | ||
* | ||
* See HttpRequest. | ||
* | ||
* @param baseUrl | ||
*/ | ||
constructor(baseUrl: string); | ||
@@ -15,0 +27,0 @@ setDefaultHeader(name: string, value: string): this; |
@@ -10,2 +10,4 @@ import * as Constants from './constants'; | ||
export * from './baseCogniteClient'; | ||
export { BasicHttpClient } from './httpClient/basicHttpClient'; | ||
export { RetryableHttpClient } from './httpClient/retryableHttpClient'; | ||
export { CDFHttpClient } from './httpClient/cdfHttpClient'; | ||
@@ -12,0 +14,0 @@ export { CogniteError } from './error'; |
@@ -9,5 +9,5 @@ { | ||
"types": "dist/src/index.d.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"clean": "rm -rf dist/ docs/", | ||
"test": "jest --config=../../jest.config.js --testPathPattern=/core/", | ||
@@ -19,3 +19,5 @@ "lint": "eslint 'src/**/*.{js,ts}'", | ||
"watch": "rollup -cw", | ||
"esCheck": "es-check es5 './dist/index.js'" | ||
"esCheck": "es-check es5 './dist/index.js'", | ||
"docs": "typedoc --options typedoc.js --tsconfig tsconfig.json src/index.ts", | ||
"docs:bundle": "yarn docs && mkdir -p ../../docs/core && cp -r docs/* ../../docs/core/" | ||
}, | ||
@@ -31,3 +33,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "e04804beedf85025df40d0e57519bbb103b66717" | ||
"gitHead": "c141e83378de59346e4c3288d9cba8a0d848186f" | ||
} |
@@ -79,3 +79,2 @@ // Copyright 2020 Cognite AS | ||
/** @hidden */ | ||
export default class BaseCogniteClient { | ||
@@ -82,0 +81,0 @@ public get login() { |
@@ -75,2 +75,14 @@ // Copyright 2020 Cognite AS | ||
/** | ||
* A basic http client with the option of adding default headers, | ||
* and the option of using a baseUrl. | ||
* Note: If the path given starts with `https://`, the baseUrl is ignored. | ||
* | ||
* It handles query parameters, and request body data which gets encoded as json if | ||
* needed. | ||
* | ||
* See HttpRequest. | ||
* | ||
* @param baseUrl | ||
*/ | ||
constructor(protected baseUrl: string) {} | ||
@@ -77,0 +89,0 @@ |
@@ -13,2 +13,4 @@ // Copyright 2020 Cognite AS | ||
export { BasicHttpClient } from './httpClient/basicHttpClient'; | ||
export { RetryableHttpClient } from './httpClient/retryableHttpClient'; | ||
export { CDFHttpClient } from './httpClient/cdfHttpClient'; | ||
@@ -15,0 +17,0 @@ export { CogniteError } from './error'; |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
335291
77
7296
2