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

@poppinss/utils

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poppinss/utils - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

build/src/callIocReference.d.ts

1

build/index.d.ts

@@ -5,1 +5,2 @@ export { Exception } from './src/Exception';

export { parseIocReference } from './src/parseIocReference';
export { callIocReference } from './src/callIocReference';

@@ -11,1 +11,3 @@ "use strict";

exports.parseIocReference = parseIocReference_1.parseIocReference;
var callIocReference_1 = require("./src/callIocReference");
exports.callIocReference = callIocReference_1.callIocReference;

5

build/src/parseIocReference.d.ts

@@ -1,2 +0,2 @@

declare type IocReference = {
export declare type IocReference = {
type: 'iocReference';

@@ -6,3 +6,3 @@ namespace: string;

};
declare type IocObject = {
export declare type IocObject = {
type: 'iocObject';

@@ -14,2 +14,1 @@ value: any;

export declare function parseIocReference(reference: string, prefixNamespace?: string, fallbackHandler?: string): IocReference;
export {};
{
"name": "@poppinss/utils",
"version": "1.0.3",
"version": "1.0.4",
"description": "Handy utilities for repetitive work",

@@ -25,18 +25,18 @@ "scripts": {

"@poppinss/dev-utils": "^1.0.0",
"@types/node": "^12.0.3",
"commitizen": "^3.1.1",
"cz-conventional-changelog": "^2.1.0",
"@types/node": "^12.6.8",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.0.2",
"del-cli": "^2.0.0",
"doctoc": "^1.4.0",
"husky": "^2.3.0",
"husky": "^3.0.1",
"japa": "^2.0.10",
"mrm": "^1.2.2",
"np": "^5.0.2",
"ts-node": "^8.2.0",
"tslint": "^5.16.0",
"np": "^5.0.3",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"tslint-eslint-rules": "^5.4.0",
"typedoc": "^0.14.2",
"typedoc": "^0.15.0",
"typedoc-plugin-external-module-name": "^2.1.0",
"typedoc-plugin-markdown": "^1.2.1",
"typescript": "^3.5.1"
"typedoc-plugin-markdown": "^2.0.11",
"typescript": "^3.5.3"
},

@@ -43,0 +43,0 @@ "nyc": {

@@ -19,2 +19,3 @@ <div align="center">

- [parseIoCReference](#parseiocreference)
- [callIocReference](#calliocreference)
- [API](#api)

@@ -128,2 +129,13 @@ - [Maintainers](#maintainers)

#### callIocReference
Invoke the method under a given namespace with automatic depedency injection. This method excepts the application is using `@adonisjs/fold` with it's defined globals.
```ts
const parsed = parseIocReference('UserController.index')
console.log(callIocReference(parsed, []))
```
The `callIocReference` method uses `ioc.make` and `ioc.call` and both of these methods support automatic dependency injection.
## API

@@ -130,0 +142,0 @@ Following are the autogenerated files via Typedoc

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