@slimlib/injector 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@ Parameter names based dependency injector for nodejs.
8
8
  - minification of code is not supported
9
9
  - not typesafe
10
10
  - classes not supported
11
- - slower than normal function call
11
+ - slower than a normal function call
12
12
 
13
13
  [Changelog](./CHANGELOG.md)
14
14
 
@@ -16,11 +16,11 @@ Parameter names based dependency injector for nodejs.
16
16
 
17
17
  ### createInject()
18
18
 
19
- returns new instance of an injector function to work with.
19
+ returns a new instance of an injector function to work with.
20
20
 
21
21
  ### injector(function, scope)
22
22
 
23
- injects arguments into function and invoke it
23
+ injects arguments into function and invokes it
24
24
 
25
25
  `function` - *required*, function to inject parameters and call
26
26
  `scope` - *optional*, *default* = `{}`, this argument for the function
@@ -32,7 +32,7 @@ predefined injectable function
32
32
  `key` - string, required
33
33
  `value` - unknown
34
34
 
35
- to get it, inject it in the function
35
+ to get it, inject it into the function
36
36
 
37
37
  ```typescript
38
38
  inject(($provide: Provider) => {
@@ -63,7 +63,7 @@ inject(async (config: Json) => {
63
63
 
64
64
  # FAQ
65
65
 
66
- 1. Is it good solution to mock something in unit tests?
66
+ 1. Is it a good solution to mock something in unit tests?
67
67
 
68
68
  - no, please use [jest](https://jestjs.io/), [vitest](https://vitest.dev/), [proxyquire](https://www.npmjs.com/package/proxyquire), [proxyrequire](https://www.npmjs.com/package/proxyrequire) and other similar approaches to mock modules.
69
69
 
@@ -73,7 +73,7 @@ inject(async (config: Json) => {
73
73
 
74
74
  3. Is it good for nodejs applications?
75
75
 
76
- - only in some edge cases, please use singletons / factories / something else if possible
76
+ - only in some edge cases, please use singletons/factories/something else if possible
77
77
 
78
78
  # License
79
79
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.3",
2
+ "version": "1.0.4",
3
3
  "license": "MIT",
4
4
  "name": "@slimlib/injector",
5
5
  "author": "Konstantin Shutkin",