Comparing version 0.7.2 to 0.8.0
{ | ||
"name": "ngimport", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"description": "Easy to use ES6 imports for $http, $log, and other Angular 1 services", | ||
@@ -14,3 +14,3 @@ "main": "./index.js", | ||
"lint": "tslint index.ts", | ||
"prepublish": "npm test", | ||
"prepublishOnly": "npm test", | ||
"pretest": "npm run build", | ||
@@ -49,20 +49,25 @@ "tdd": "karma start", | ||
"devDependencies": { | ||
"@types/jasmine": "^2.5.51", | ||
"angular-mocks": ">=1.5.0", | ||
"browserify": "^14.4.0", | ||
"jasmine": "^2.6.0", | ||
"karma": "^1.7.0", | ||
"@types/angular-mocks": "^1.5.11", | ||
"@types/jasmine": "^2.6.0", | ||
"angular": "^1.6.6", | ||
"angular-mocks": "^1.6.6", | ||
"angular-resource": "^1.6.6", | ||
"browserify": "^14.5.0", | ||
"jasmine": "^2.8.0", | ||
"jasmine-core": "^2.8.0", | ||
"karma": "^1.7.1", | ||
"karma-browserify": "^5.1.1", | ||
"karma-chrome-launcher": "^2.1.1", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-mocha-reporter": "^2.2.3", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"karma-source-map-support": "^1.2.0", | ||
"tslint": "^5.4.2", | ||
"typescript": "^2.3.4", | ||
"tslint": "^5.8.0", | ||
"typescript": "^2.5.3", | ||
"watchify": "^3.9.0" | ||
}, | ||
"dependencies": { | ||
"@types/angular": "^1.6.18", | ||
"@types/angular-mocks": "^1.5.9", | ||
"@types/angular-resource": "^1.5.8", | ||
"@types/angular": "^1.6.34", | ||
"@types/angular-resource": "^1.5.14" | ||
}, | ||
"peerDependencies": { | ||
"angular": ">=1.5.0", | ||
@@ -69,0 +74,0 @@ "angular-resource": ">=1.5.0" |
@@ -9,2 +9,12 @@ # ngimport [![Build Status][build]](https://circleci.com/gh/bcherny/ngimport) [![npm]](https://www.npmjs.com/package/ngimport) [![mit]](https://opensource.org/licenses/MIT) | ||
## Install | ||
```sh | ||
# Using Yarn: | ||
yarn add ngimport angular angular-resource | ||
# Or, using NPM: | ||
npm install ngimport angular angular-resource --save | ||
``` | ||
## Example | ||
@@ -52,2 +62,4 @@ | ||
```ts | ||
angular.module('myModule', []) | ||
// Contents of Get.ts: | ||
@@ -57,3 +69,3 @@ | ||
angular.factory('Get', function( | ||
angular.module('myModule').factory('Get', function( | ||
$http: IHttpService, | ||
@@ -78,3 +90,3 @@ $log: ILogService | ||
angular.component('MyComponent', { | ||
angular.module('myModule').component('MyComponent', { | ||
controller: class MyComponentController { | ||
@@ -92,2 +104,4 @@ constructor(private Get: Get) {}, | ||
```ts | ||
angular.module('myModule', ['bcherny/ngimport']) | ||
// Contents of Get.ts: | ||
@@ -109,3 +123,3 @@ | ||
angular.component('MyComponent', { | ||
angular.module('myModule').component('MyComponent', { | ||
controller: class MyComponentController { | ||
@@ -112,0 +126,0 @@ get() { |
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
256852
4
13
198
17
- Removed@types/angular-mocks@^1.5.9
- Removedangular@>=1.5.0
- Removedangular-resource@>=1.5.0
- Removed@types/angular-mocks@1.7.4(transitive)
Updated@types/angular@^1.6.34