🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

trustpilot

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trustpilot - npm Package Compare versions

Comparing version

to
3.1.2

15

CHANGELOG.md

@@ -0,1 +1,16 @@

## [3.1.2](https://github.com/trustpilot/node-trustpilot/compare/v3.1.1...v3.1.2) (2019-05-01)
### Build
* Improve travis configuration ([5fd487b7153fa406c083adbe6227f5b8b7578c1d](https://github.com/trustpilot/node-trustpilot/commit/5fd487b7153fa406c083adbe6227f5b8b7578c1d))
### Fix
* Move @types as dependencies ([a27df71cd3147363a2c829bbc6aee58793bf0751](https://github.com/trustpilot/node-trustpilot/commit/a27df71cd3147363a2c829bbc6aee58793bf0751))
### Upgrade
* Update dependencies and fix vulnerabilities ([5e9c37b6ff6f2f0254c5d482b52682d7d64cf56b](https://github.com/trustpilot/node-trustpilot/commit/5e9c37b6ff6f2f0254c5d482b52682d7d64cf56b))
## [3.1.1](https://github.com/trustpilot/node-trustpilot/compare/v3.1.0...v3.1.1) (2019-01-21)

@@ -2,0 +17,0 @@

7

dist/models.d.ts

@@ -1,2 +0,2 @@

export declare type ITrustpilotApiConfig = Partial<{
interface IConfig {
baseUrl: string;

@@ -9,2 +9,5 @@ key: string;

accessToken: string;
}>;
}
export interface ITrustpilotApiConfig extends Partial<IConfig> {
}
export {};

@@ -1,2 +0,2 @@

import { RequestAPI, UriOptions, UrlOptions } from 'request';
/// <reference types="request" />
import * as rp from 'request-promise-native';

@@ -7,6 +7,6 @@ import { AccessProvider } from './access-provider';

constructor(accessProvider: AccessProvider);
public readonly basicRequest: RequestAPI<rp.RequestPromise<any>, rp.RequestPromiseOptions, UriOptions | UrlOptions>;
public readonly apiRequest: RequestAPI<rp.RequestPromise<any>, rp.RequestPromiseOptions, UriOptions | UrlOptions>;
public buildAuthenticatedRequest(): Promise<RequestAPI<rp.RequestPromise<any>, rp.RequestPromiseOptions, UriOptions | UrlOptions>>;
readonly basicRequest: import("request").RequestAPI<rp.RequestPromise<any>, rp.RequestPromiseOptions, import("request").RequiredUriUrl>;
readonly apiRequest: import("request").RequestAPI<rp.RequestPromise<any>, rp.RequestPromiseOptions, import("request").RequiredUriUrl>;
buildAuthenticatedRequest(): Promise<import("request").RequestAPI<rp.RequestPromise<any>, rp.RequestPromiseOptions, import("request").RequiredUriUrl>>;
private createBearerTokenHeader;
}

@@ -1,3 +0,3 @@

import { RequestAPI, UriOptions, UrlOptions } from 'request';
import { RequestPromise, RequestPromiseOptions } from 'request-promise-native';
/// <reference types="request-promise-native" />
/// <reference types="request" />
import { ITrustpilotApiConfig } from './models';

@@ -7,4 +7,4 @@ export declare class TrustpilotApi {

constructor(config: Readonly<ITrustpilotApiConfig>);
public readonly apiRequest: RequestAPI<RequestPromise<any>, RequestPromiseOptions, UriOptions | UrlOptions>;
public authenticate(): Promise<RequestAPI<RequestPromise<any>, RequestPromiseOptions, UriOptions | UrlOptions>>;
readonly apiRequest: import("request").RequestAPI<import("request-promise-native").RequestPromise<any>, import("request-promise-native").RequestPromiseOptions, import("request").RequiredUriUrl>;
authenticate(): Promise<import("request").RequestAPI<import("request-promise-native").RequestPromise<any>, import("request-promise-native").RequestPromiseOptions, import("request").RequiredUriUrl>>;
}
{
"name": "trustpilot",
"version": "3.1.1",
"version": "3.1.2",
"description": "HTTP client for Trustpilot",

@@ -18,31 +18,32 @@ "homepage": "https://github.com/trustpilot/node-trustpilot",

"scripts": {
"tsc": "tsc -p tsconfig.build.json",
"test": "mocha --compilers ts:ts-node/register ./spec/*.spec.ts",
"lint": "tslint -c tslint.json --fix -e node_modules/** -e **/*.d.ts **/*.ts",
"build": "npm run tsc && npm run test && npm run lint",
"start": "node dist/client.js"
"build": "tsc --project tsconfig.build.json",
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"start": "node dist/client.js",
"test": "mocha --require ts-node/register ./spec/*.spec.ts"
},
"dependencies": {
"request": "^2.87.0",
"request-promise-native": "^1.0.5"
"@types/request": "^2.48.1",
"@types/request-promise-native": "^1.0.16",
"request": "2.88.0",
"request-promise-native": "1.0.7"
},
"devDependencies": {
"@semantic-release/changelog": "^3.0.1",
"@semantic-release/git": "^7.0.5",
"@semantic-release/npm": "^5.1.1",
"@semantic-release/release-notes-generator": "^7.1.4",
"@types/chai": "^4.1.4",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.8",
"@semantic-release/npm": "^5.1.7",
"@semantic-release/release-notes-generator": "^7.1.6",
"@types/chai": "^4.1.7",
"@types/chai-as-promised": "^7.1.0",
"@types/mocha": "^5.2.3",
"@types/request-promise-native": "^1.0.15",
"chai": "^4.1.2",
"@types/mocha": "^5.2.6",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"commitlint": "^7.2.1",
"commitlint": "^7.5.2",
"conventional-changelog-eslint": "^3.0.1",
"husky": "^1.2.0",
"mocha": "^5.2.0",
"semantic-release": "^15.12.3",
"ts-node": "^6.1.2",
"tslint": "^5.10.0",
"typescript": "^2.9.2"
"husky": "^2.1.0",
"mocha": "^6.1.4",
"semantic-release": "^15.13.12",
"ts-node": "^8.1.0",
"tslint": "^5.16.0",
"typescript": "^3.4.5"
},

@@ -49,0 +50,0 @@ "husky": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet