potion-client
Advanced tools
Comparing version 3.0.2 to 3.1.0
import { __assign, __extends, __read, __spread, __values } from 'tslib'; | ||
import * as tslib_1 from 'tslib'; | ||
import { module as module$1 } from 'angular'; | ||
import * as angular from 'angular'; | ||
@@ -6,0 +4,0 @@ /** |
import { module as module$1 } from 'angular'; | ||
import * as angular from 'angular'; | ||
@@ -4,0 +3,0 @@ /** |
@@ -0,1 +1,11 @@ | ||
<a name="3.1.0"></a> | ||
# [3.1.0](https://github.com/biosustain/potion-node/compare/v3.0.2...v3.1.0) (2017-09-13) | ||
### Features | ||
* upgrade deps ([b5bf1e5](https://github.com/biosustain/potion-node/commit/b5bf1e5)) | ||
<a name="3.0.2"></a> | ||
@@ -2,0 +12,0 @@ ## [3.0.2](https://github.com/biosustain/potion-node/compare/v3.0.1...v3.0.2) (2017-07-24) |
import { __assign, __extends, __read, __spread, __values } from 'tslib'; | ||
import * as tslib_1 from 'tslib'; | ||
@@ -4,0 +3,0 @@ /** |
import { __assign, __extends, __read, __spread, __values } from 'tslib'; | ||
import * as tslib_1 from 'tslib'; | ||
import { Inject, Injectable, InjectionToken, NgModule, Optional, SkipSelf, forwardRef } from '@angular/core'; | ||
@@ -1322,5 +1321,5 @@ import { HttpClient, HttpClientModule, HttpHeaders, HttpParams, HttpRequest, HttpResponse } from '@angular/common/http'; | ||
*/ | ||
function Potion(http, config) { | ||
function Potion(http$$1, config) { | ||
var _this = _super.call(this, __assign({}, config)) || this; | ||
_this.http = http; | ||
_this.http = http$$1; | ||
return _this; | ||
@@ -1444,4 +1443,4 @@ } | ||
*/ | ||
function POTION_PROVIDER_FACTORY(parentFactory, http, config) { | ||
return parentFactory || new Potion(http, config); | ||
function POTION_PROVIDER_FACTORY(parentFactory, http$$1, config) { | ||
return parentFactory || new Potion(http$$1, config); | ||
} | ||
@@ -1448,0 +1447,0 @@ var POTION_PROVIDER = { |
@@ -1185,5 +1185,5 @@ import { Inject, Injectable, InjectionToken, NgModule, Optional, SkipSelf, forwardRef } from '@angular/core'; | ||
*/ | ||
constructor(http, config) { | ||
constructor(http$$1, config) { | ||
super(Object.assign({}, config)); | ||
this.http = http; | ||
this.http = http$$1; | ||
} | ||
@@ -1272,4 +1272,4 @@ /** | ||
*/ | ||
function POTION_PROVIDER_FACTORY(parentFactory, http, config) { | ||
return parentFactory || new Potion(http, config); | ||
function POTION_PROVIDER_FACTORY(parentFactory, http$$1, config) { | ||
return parentFactory || new Potion(http$$1, config); | ||
} | ||
@@ -1276,0 +1276,0 @@ const POTION_PROVIDER = { |
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(factory((global.potionClient = {}),global.tslib,global.ng.core,global.ng.common.http)); | ||
}(this, (function (exports,tslib_1,_angular_core,_angular_common_http) { 'use strict'; | ||
}(this, (function (exports,tslib_1,core,http) { 'use strict'; | ||
@@ -1306,7 +1306,7 @@ /** | ||
*/ | ||
var POTION_RESOURCES = new _angular_core.InjectionToken('PotionResources'); | ||
var POTION_RESOURCES = new core.InjectionToken('PotionResources'); | ||
/** | ||
* Token for configuring Potion | ||
*/ | ||
var POTION_CONFIG = new _angular_core.InjectionToken('PotionConfig'); | ||
var POTION_CONFIG = new core.InjectionToken('PotionConfig'); | ||
/** | ||
@@ -1322,5 +1322,5 @@ * Potion provider for Angular | ||
*/ | ||
function Potion(http, config) { | ||
function Potion(http$$1, config) { | ||
var _this = _super.call(this, tslib_1.__assign({}, config)) || this; | ||
_this.http = http; | ||
_this.http = http$$1; | ||
return _this; | ||
@@ -1371,3 +1371,3 @@ } | ||
// Potion expects all requests to have content type set to 'application/json'. | ||
headers: new _angular_common_http.HttpHeaders({ | ||
headers: new http.HttpHeaders({ | ||
'content-type': 'application/json' | ||
@@ -1379,3 +1379,3 @@ }), | ||
if (isJsObject(params)) { | ||
var /** @type {?} */ httpParams = new _angular_common_http.HttpParams(); | ||
var /** @type {?} */ httpParams = new http.HttpParams(); | ||
try { | ||
@@ -1399,5 +1399,5 @@ for (var _c = tslib_1.__values(Object.entries(params)), _d = _c.next(); !_d.done; _d = _c.next()) { | ||
} | ||
var /** @type {?} */ request = method === 'POST' || method === 'PUT' || method === 'PATCH' ? new _angular_common_http.HttpRequest(/** @type {?} */ (method), uri, toJson(body), init) : new _angular_common_http.HttpRequest(/** @type {?} */ (method), uri, init); | ||
var /** @type {?} */ request = method === 'POST' || method === 'PUT' || method === 'PATCH' ? new http.HttpRequest(/** @type {?} */ (method), uri, toJson(body), init) : new http.HttpRequest(/** @type {?} */ (method), uri, init); | ||
return this.http.request(request) | ||
.filter(function (event) { return event instanceof _angular_common_http.HttpResponse; }) | ||
.filter(function (event) { return event instanceof http.HttpResponse; }) | ||
.map(function (response) { | ||
@@ -1430,3 +1430,3 @@ var /** @type {?} */ body = response.body; | ||
Potion.decorators = [ | ||
{ type: _angular_core.Injectable }, | ||
{ type: core.Injectable }, | ||
]; | ||
@@ -1437,4 +1437,4 @@ /** | ||
Potion.ctorParameters = function () { return [ | ||
{ type: _angular_common_http.HttpClient, }, | ||
{ type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [POTION_CONFIG,] },] }, | ||
{ type: http.HttpClient, }, | ||
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [POTION_CONFIG,] },] }, | ||
]; }; | ||
@@ -1449,4 +1449,4 @@ return Potion; | ||
*/ | ||
function POTION_PROVIDER_FACTORY(parentFactory, http, config) { | ||
return parentFactory || new Potion(http, config); | ||
function POTION_PROVIDER_FACTORY(parentFactory, http$$1, config) { | ||
return parentFactory || new Potion(http$$1, config); | ||
} | ||
@@ -1459,5 +1459,5 @@ var POTION_PROVIDER = { | ||
deps: [ | ||
[new _angular_core.Optional(), new _angular_core.SkipSelf(), Potion], | ||
_angular_common_http.HttpClient, | ||
[new _angular_core.Optional(), new _angular_core.Inject(POTION_CONFIG)] | ||
[new core.Optional(), new core.SkipSelf(), Potion], | ||
http.HttpClient, | ||
[new core.Optional(), new core.Inject(POTION_CONFIG)] | ||
] | ||
@@ -1516,4 +1516,4 @@ }; | ||
PotionModule.decorators = [ | ||
{ type: _angular_core.NgModule, args: [{ | ||
imports: [_angular_common_http.HttpClientModule], | ||
{ type: core.NgModule, args: [{ | ||
imports: [http.HttpClientModule], | ||
providers: [ | ||
@@ -1528,4 +1528,4 @@ POTION_PROVIDER | ||
PotionModule.ctorParameters = function () { return [ | ||
{ type: Potion, decorators: [{ type: _angular_core.Inject, args: [_angular_core.forwardRef(function () { return Potion; }),] },] }, | ||
{ type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [POTION_RESOURCES,] },] }, | ||
{ type: Potion, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return Potion; }),] },] }, | ||
{ type: Array, decorators: [{ type: core.Optional }, { type: core.Inject, args: [POTION_RESOURCES,] },] }, | ||
]; }; | ||
@@ -1532,0 +1532,0 @@ return PotionModule; |
174
package.json
{ | ||
"name": "potion-client", | ||
"version": "3.0.2", | ||
"description": "A ES6 client for APIs written in Flask-Potion", | ||
"keywords": [ | ||
"potion", | ||
"potion flask", | ||
"potion flask client", | ||
"potion client", | ||
"flask" | ||
], | ||
"homepage": "", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Roland Groza", | ||
"email": "rolandjitsu@gmail.com " | ||
}, | ||
"main": "./ng.umd.js", | ||
"module": "./ng.es5.js", | ||
"es2015": "./ng.js", | ||
"typings": "./ng.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/biosustain/potion-node" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf out-tsc dist/*", | ||
"lint": "tslint -c tslint.json -p src/tsconfig.spec.json -t stylish --type-check", | ||
"lint:fix": "npm run lint -- --fix", | ||
"pretest": "npm run lint", | ||
"test": "karma start karma.config.js --browsers Chrome --single-run --log-level error", | ||
"test:continuous": "karma start karma.config.js", | ||
"prebuild": "npm run test && npm run clean", | ||
"build": "scripts/build.sh", | ||
"release:prerelease": "scripts/release.sh prerelease", | ||
"release": "scripts/release.sh patch", | ||
"release:preminor": "scripts/release.sh preminor", | ||
"release:minor": "scripts/release.sh minor", | ||
"release:premajor": "scripts/release.sh premajor", | ||
"release:major": "scripts/release.sh major" | ||
}, | ||
"dependencies": { | ||
"reflect-metadata": "^0.1.10", | ||
"tslib": "^1.7.1" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@angular/common": "^4.3.0", | ||
"@angular/compiler": "^4.3.0", | ||
"@angular/compiler-cli": "^4.3.0", | ||
"@angular/core": "^4.3.0", | ||
"@angular/http": "^4.3.0", | ||
"@angular/platform-browser": "^4.3.0", | ||
"@angular/platform-browser-dynamic": "^4.3.0", | ||
"@types/angular": "^1.6.26", | ||
"@types/angular-mocks": "^1.5.10", | ||
"@types/fetch-mock": "^5.8.3", | ||
"@types/jasmine": "^2.5.53", | ||
"@types/jquery": "^3.2.8", | ||
"@types/node": "^7.0.31", | ||
"@types/reflect-metadata": "^0.0.5", | ||
"angular": "^1.6.5", | ||
"angular-mocks": "^1.6.5", | ||
"camelcase": "^4.1.0", | ||
"conventional-changelog-cli": "^1.3.1", | ||
"core-js": "^2.4.1", | ||
"fetch-mock": "^5.12.1", | ||
"jasmine": "^2.6.0", | ||
"jasmine-core": "^2.6.4", | ||
"karma": "^1.7.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-cli": "^1.0.1", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-spec-reporter": "^0.0.31", | ||
"karma-typescript": "^3.0.4", | ||
"rollup": "^0.45.2", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"rxjs": "^5.4.2", | ||
"tslib": "^1.7.1", | ||
"tslint": "^5.5.0", | ||
"typescript": "^2.4.1", | ||
"whatwg-fetch": "^2.0.3", | ||
"zone.js": "^0.8.12" | ||
}, | ||
"engines": { | ||
"node": ">=7.4" | ||
} | ||
"name": "potion-client", | ||
"version": "3.1.0", | ||
"description": "A ES6 client for APIs written in Flask-Potion", | ||
"keywords": [ | ||
"potion", | ||
"potion flask", | ||
"potion flask client", | ||
"potion client", | ||
"flask" | ||
], | ||
"homepage": "", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Roland Groza", | ||
"email": "rolandjitsu@gmail.com " | ||
}, | ||
"main": "./ng.umd.js", | ||
"module": "./ng.es5.js", | ||
"es2015": "./ng.js", | ||
"typings": "./ng.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/biosustain/potion-node" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf out-tsc dist/*", | ||
"lint": "tslint -c tslint.json -p src/tsconfig.spec.json -t stylish --type-check", | ||
"lint:fix": "npm run lint -- --fix", | ||
"pretest": "npm run lint", | ||
"test": "karma start karma.config.js --browsers Chrome --single-run --log-level error", | ||
"test:continuous": "karma start karma.config.js", | ||
"prebuild": "npm run test && npm run clean", | ||
"build": "scripts/build.sh", | ||
"release:prerelease": "scripts/release.sh prerelease", | ||
"release": "scripts/release.sh patch", | ||
"release:preminor": "scripts/release.sh preminor", | ||
"release:minor": "scripts/release.sh minor", | ||
"release:premajor": "scripts/release.sh premajor", | ||
"release:major": "scripts/release.sh major" | ||
}, | ||
"dependencies": { | ||
"reflect-metadata": "^0.1.10", | ||
"tslib": "^1.7.1" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@angular/common": "^4.3.6", | ||
"@angular/compiler": "^4.3.6", | ||
"@angular/compiler-cli": "^4.3.6", | ||
"@angular/core": "^4.3.6", | ||
"@angular/http": "^4.3.6", | ||
"@angular/platform-browser": "^4.3.6", | ||
"@angular/platform-browser-dynamic": "^4.3.6", | ||
"@types/angular": "^1.6.32", | ||
"@types/angular-mocks": "^1.5.11", | ||
"@types/fetch-mock": "^5.12.0", | ||
"@types/jasmine": "^2.5.54", | ||
"@types/jquery": "^3.2.12", | ||
"@types/node": "^8.0.28", | ||
"@types/reflect-metadata": "^0.0.5", | ||
"angular": "^1.6.6", | ||
"angular-mocks": "^1.6.6", | ||
"camelcase": "^4.1.0", | ||
"conventional-changelog-cli": "^1.3.3", | ||
"core-js": "^2.5.1", | ||
"fetch-mock": "^5.12.2", | ||
"jasmine": "^2.8.0", | ||
"jasmine-core": "^2.8.0", | ||
"karma": "^1.7.1", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-cli": "^1.0.1", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-spec-reporter": "^0.0.31", | ||
"karma-typescript": "^3.0.5", | ||
"rollup": "^0.49.3", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"rxjs": "^5.4.3", | ||
"tslib": "^1.7.1", | ||
"tslint": "^5.7.0", | ||
"typescript": "~2.4.2", | ||
"whatwg-fetch": "^2.0.3", | ||
"zone.js": "^0.8.17" | ||
}, | ||
"engines": { | ||
"node": ">=6.9" | ||
} | ||
} |
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
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
1222104
11342