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

@ng-apimock/base-client

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-apimock/base-client - npm Package Compare versions

Comparing version

to
1.0.15

coverage/clover.xml

1

dist/base.client.d.ts

@@ -6,2 +6,3 @@ import { Request } from 'node-fetch';

baseUrl: string;
private agent;
constructor(baseUrl: string);

@@ -8,0 +9,0 @@ delayResponse(name: string, delay: number): Promise<any>;

@@ -14,2 +14,3 @@ "use strict";

const uuid = require("uuid");
const https = require("https");
const urljoin = require("url-join");

@@ -21,2 +22,5 @@ const COOKIE_NAME = 'apimockid';

this.baseUrl = urljoin(baseUrl, 'ngapimock');
this.agent = new https.Agent({
rejectUnauthorized: false
});
}

@@ -79,2 +83,5 @@ delayResponse(name, delay) {

}
if (this.baseUrl.startsWith('https')) {
requestInit.agent = this.agent;
}
const url = urljoin(this.baseUrl, query);

@@ -81,0 +88,0 @@ return yield this.fetchResponse(new node_fetch_1.Request(url, requestInit))

101

package.json
{
"name": "@ng-apimock/base-client",
"description": "Base client for @ng-apimock/core",
"version": "1.0.14",
"homepage": "https://github.com/ng-apimock/base-client#readme",
"author": {
"name": "Mischa Dasberg",
"email": "mischa@dasberg.nl"
},
"main": "dist/base.client.js",
"types": "dist/base.client.d.ts",
"scripts": {
"precompile": "rimraf dist",
"compile": "tsc",
"lint": "tslint -p tsconfig.json",
"test": "jasmine-ts --config=jasmine.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ng-apimock/base-client.git"
},
"bugs": {
"url": "https://github.com/ng-apimock/base-client/issues"
},
"license": "MIT",
"keywords": [
"apimock",
"ng-apimock",
"http",
"api"
],
"devDependencies": {
"@types/jasmine": "3.4.2",
"@types/node-fetch": "2.5.2",
"@types/sinon": "7.5.0",
"@types/url-join": "4.0.0",
"@types/uuid": "3.4.5",
"jasmine": "3.5.0",
"jasmine-ts": "0.3.0",
"rimraf": "3.0.0",
"sinon": "7.5.0",
"ts-node": "8.4.1",
"tslint": "5.20.0",
"tslint-eslint-rules": "5.4.0",
"typescript": "3.6.3",
"vrsource-tslint-rules": "6.0.0"
},
"dependencies": {
"node-fetch": "2.6.0",
"url-join": "4.0.1",
"uuid": "3.3.3"
}
"name": "@ng-apimock/base-client",
"description": "Base client for @ng-apimock/core",
"version": "1.0.15",
"homepage": "https://github.com/ng-apimock/base-client#readme",
"author": {
"name": "Mischa Dasberg",
"email": "mischa@dasberg.nl"
},
"main": "dist/base.client.js",
"types": "dist/base.client.d.ts",
"scripts": {
"precompile": "rimraf dist",
"compile": "tsc",
"lint": "tslint -p tsconfig.json",
"test": "jest --config=jest.config.js -w 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ng-apimock/base-client.git"
},
"bugs": {
"url": "https://github.com/ng-apimock/base-client/issues"
},
"license": "MIT",
"keywords": [
"apimock",
"ng-apimock",
"http",
"api"
],
"devDependencies": {
"@types/jest": "25.1.3",
"@types/node-fetch": "2.5.5",
"@types/sinon": "7.5.2",
"@types/url-join": "4.0.0",
"@types/uuid": "7.0.0",
"jest": "25.1.0",
"rimraf": "3.0.2",
"sinon": "9.0.0",
"ts-jest": "25.2.1",
"tslint": "6.0.0",
"tslint-eslint-rules": "5.4.0",
"typescript": "3.8.3",
"vrsource-tslint-rules": "6.0.0"
},
"dependencies": {
"node-fetch": "2.6.0",
"url-join": "4.0.1",
"uuid": "7.0.1"
}
}

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

# ng-apimock/base-client [![CircleCI](https://circleci.com/gh/ng-apimock/base-client.svg?style=svg)](https://circleci.com/gh/ng-apimock/base-client) [![dependency Status](https://img.shields.io/david/ng-apimock/base-client.svg)](https://david-dm.org/ng-apimock/base-client) [![devDependency Status](https://img.shields.io/david/dev/ng-apimock/base-client.svg)](https://david-dm.org/ng-apimock/base-client#info=devDependencies)
# ng-apimock/base-client [![CircleCI](https://circleci.com/gh/ng-apimock/base-client.svg?style=svg)](https://circleci.com/gh/ng-apimock/base-client) [![dependency Status](https://img.shields.io/david/ng-apimock/base-client.svg)](https://david-dm.org/ng-apimock/base-client) [![devDependency Status](https://img.shields.io/david/dev/ng-apimock/base-client.svg)](https://david-dm.org/ng-apimock/base-client#info=devDependencies) ![npm downloads](https://img.shields.io/npm/dm/@ng-apimock/base-client)
Base client for ng-apimock api.

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

Sorry, the diff of this file is not supported yet