Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngimport

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngimport - npm Package Compare versions

Comparing version 0.7.2 to 0.8.0

yarn.lock

33

package.json
{
"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() {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc