@slimlib/injector 2.0.0 → 2.0.1

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 +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # injector
2
2
 
3
- Parameter names based dependency injector for nodejs.
3
+ Parameter-names-based dependency injector for Node.js.
4
4
 
5
5
  [Changelog](./CHANGELOG.md)
6
6
 
@@ -32,10 +32,10 @@ This allows code to be minified since the dependency names are preserved as stri
32
32
 
33
33
  ### injector(function, scope)
34
34
 
35
- Injects arguments into function and invokes it.
35
+ Injects arguments into a function and invokes it.
36
36
 
37
- `function` - _required_, function to inject parameters and call (or annotated array for `createInjectAnnotated`)
38
- `scope` - _optional_, _default_ = `{}`, this argument for the function
37
+ `function` - _required_, function to inject parameters into and call (or annotated array for `createInjectAnnotated`)
38
+ `scope` - _optional_, _default_ = `{}`, `this` argument for the function
39
39
 
40
40
  ### $provide(key, value)
41
41
 
@@ -138,7 +138,7 @@ You can use `createInject` during development and swap to `createInjectAnnotated
138
138
 
139
139
  - `createInject` will not work after minification, but `createInjectAnnotated` is designed to work with minified code.
140
140
 
141
- 3. Is it good for nodejs applications?
141
+ 3. Is it good for Node.js applications?
142
142
 
143
143
  - Only in some edge cases, please use singletons/factories/something else if possible.
144
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "name": "@slimlib/injector",
5
5
  "description": "Parameter names based dependency injector for nodejs",
6
6
  "license": "MIT",