Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "ng2-api", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Angular2 API services", | ||
"main": "ng2-api.js", | ||
"typings": "ng2-api.d.ts", | ||
"main": "src/ng2-api.js", | ||
"typings": "src/ng2-api.d.ts", | ||
"scripts": { | ||
"clean": "rimraf node_modules typings && npm run clean:src", | ||
"clean:src": "rimraf src/*.{js,d.ts}", | ||
"build": "typings install && tsc", | ||
"test": "karma start", | ||
"test:w": "karma start --no-single-run --auto-watch", | ||
"prepublish": "typings install && npm run build && npm test", | ||
"start": "lite-server start" | ||
@@ -22,7 +28,20 @@ }, | ||
"devDependencies": { | ||
"browser-sync": "^2.12.3", | ||
"@angular/common": "^2.0.0-rc.0", | ||
"@angular/compiler": "^2.0.0-rc.0", | ||
"@angular/core": "^2.0.0-rc.0", | ||
"@angular/http": "^2.0.0-rc.0", | ||
"@angular/platform-browser": "^2.0.0-rc.0", | ||
"@angular/platform-browser-dynamic": "^2.0.0-rc.0", | ||
"es6-promise": "^3.0.2", | ||
"es6-shim": "^0.35.0", | ||
"lite-server": "^2.2.0", | ||
"reflect-metadata": "^0.1.2", | ||
"rxjs": "^5.0.0-beta.2", | ||
"jasmine-core": "^2.4.1", | ||
"karma": "^0.13.22", | ||
"karma-jasmine": "^0.3.8", | ||
"karma-phantomjs-launcher": "^1.0.0", | ||
"karma-typescript-preprocessor": "0.0.21", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"reflect-metadata": "0.1.2", | ||
"rimraf": "^2.5.2", | ||
"rxjs": "5.0.0-beta.6", | ||
"systemjs": "^0.19.26", | ||
"typescript": "^1.8.10", | ||
@@ -33,4 +52,9 @@ "typings": "^0.8.1", | ||
"peerDependencies": { | ||
"angular2": "^2.0.0-beta.15" | ||
"@angular/common": "^2.0.0-rc.0", | ||
"@angular/compiler": "^2.0.0-rc.0", | ||
"@angular/core": "^2.0.0-rc.0", | ||
"@angular/http": "^2.0.0-rc.0", | ||
"@angular/platform-browser": "^2.0.0-rc.0", | ||
"@angular/platform-browser-dynamic": "^2.0.0-rc.0" | ||
} | ||
} |
@@ -15,16 +15,12 @@ # ng2-api | ||
import {Inject, Injectable} from 'angular2/core'; | ||
import {Http, Response} from 'angular2/http'; | ||
import {Inject, Injectable} from '@angular/core'; | ||
import {Http, Response} from '@angular/http'; | ||
import {ApiService} from 'ng2-api'; | ||
export class Post { | ||
export interface Post { | ||
id: number; | ||
title: string; | ||
body: string; | ||
} | ||
constructor(object: Object) { | ||
Object.assign(this, object); | ||
} | ||
} | ||
@Injectable() | ||
@@ -40,3 +36,2 @@ export class PostsService extends ApiService<Post> { | ||
} | ||
@@ -51,4 +46,10 @@ ### ApiService methods | ||
### Tests | ||
npm i | ||
npm run build | ||
npm run test:w | ||
## License | ||
MIT |
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"target": "es5", | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true | ||
"noImplicitAny": true, | ||
"target": "es5" | ||
}, | ||
@@ -16,5 +17,5 @@ "exclude": [ | ||
"files": [ | ||
"typings/main.d.ts", | ||
"ng2-api.ts" | ||
"src/ng2-api.ts", | ||
"typings/main.d.ts" | ||
] | ||
} | ||
} |
{ | ||
"name": "ng2-api", | ||
"version": false, | ||
"devDependencies": {}, | ||
"ambientDependencies": { | ||
@@ -6,0 +5,0 @@ "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16985
23
411
53
6
21