New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@electron-tools/ioc

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-tools/ioc - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "@electron-tools/ioc",
"version": "1.0.5",
"version": "1.0.6",
"description": "DI implement of IOC",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -7,3 +7,3 @@ # Introduction

````bash
```bash
# install by npm

@@ -31,3 +31,3 @@ $npm install @electron-tools/ioc

}
````
```

@@ -80,3 +80,3 @@ 3. use `inject` decorator inject your service to another service.

// src/serviceA.ts
import IOC, { service, inject } from '@electron-tools/ioc';
import IOC, { service, inject, INSTANTIATION_SERVICE_ID } from '@electron-tools/ioc';

@@ -86,3 +86,3 @@ @service('serviceA') // register ServiceA with unique id 'serviceA' using service decorator exported by ioc.

constructor(
@inject('instantiationService') readonly ioc: IOC, // ioc itself is also a service can be injected.
@inject(INSTANTIATION_SERVICE_ID) readonly ioc: IOC, // ioc itself is also a service can be injected.
) {}

@@ -89,0 +89,0 @@

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