@stringstack/core
Advanced tools
+1
-1
| { | ||
| "name": "@stringstack/core", | ||
| "description": "StringStack Core", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1", | ||
| "repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
+7
-3
@@ -102,6 +102,10 @@ # StringStack Core | ||
| The methods of each form are constructor, init, dinit; and load, init, dinit; respectively. The constructor and load | ||
| methods both accept a dependency container. The dependency container has one method `get(path)`. Path is a string | ||
| containing the path of the component to be retrieved. See the Path Resolution section in this document to know how paths | ||
| are resolved. | ||
| methods both accept a dependency container. The dependency container has two methods `get( path )` and `inject( path )`. | ||
| Path is a string containing the path of the component to be retrieved. See the Path Resolution section in this document | ||
| to know how paths are resolved. The difference between the two methods is whether the calling component depends on the | ||
| target, or if the calling component is injecting itself as a dependency of the target path. | ||
| get( path ): This instructs the dependency management system that the calling component depends on the component identified by path. | ||
| inject( path ): This instructs the dependency management system that the calling component must be injected as a dependency of the component identified by path. See the section on configuration for an example of why this might be useful. | ||
| Each component MUST get all of its dependencies in its constructor or load method. If you attempt to get a dependency | ||
@@ -108,0 +112,0 @@ outside of one of these methods an exception will be through by the container. |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
78432
0.74%581
0.69%0
-100%