deep-kernel
Advanced tools
Comparing version 1.0.6 to 1.1.0
@@ -237,3 +237,3 @@ /** | ||
this._container.addService(serviceInstance.name, serviceInstance.service); | ||
this._container.addService(serviceInstance.name, Kernel._createProxyIfNeeded(serviceInstance)); | ||
} | ||
@@ -252,3 +252,5 @@ | ||
/** | ||
* @returns {MicroserviceInjectable} | ||
* @param {ContainerAware|Object} serviceObj | ||
* @returns {ContainerAware|Proxy|Object} | ||
* @private | ||
*/ | ||
@@ -348,2 +350,22 @@ }, { | ||
}], [{ | ||
key: '_createProxyIfNeeded', | ||
value: function _createProxyIfNeeded(serviceObj) { | ||
if (serviceObj === serviceObj.service) { | ||
return serviceObj; | ||
} else if (!serviceObj.hasOwnProperty('apply')) { | ||
return serviceObj.service; | ||
} | ||
var proxy = new Proxy(serviceObj, serviceObj.service); | ||
proxy.__proto__ = this.__proto__; | ||
proxy.constructor.prototype = this.constructor.prototype; | ||
return proxy; | ||
} | ||
/** | ||
* @returns {MicroserviceInjectable} | ||
*/ | ||
}, { | ||
key: 'MicroserviceInjectable', | ||
@@ -350,0 +372,0 @@ get: function get() { |
{ | ||
"name": "deep-kernel", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "DEEP Kernel Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,7 +9,7 @@ DEEP Kernel Library (deep-kernel) | ||
`DEEP Framework` is a core component of the | ||
`DEEP Framework` is a serverless web framework, core component of the | ||
[Platform-as-a-Service](https://github.com/MitocGroup/deep-framework/blob/master/README.md#appendix-b-deep-ecosystem) | ||
that abstracts web services from specific cloud providers. This framework enables developers build web applications | ||
or platforms using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) in a completely | ||
[serverless approach](https://github.com/MitocGroup/deep-framework#appendix-a-serverless-architecture). | ||
that abstracts web apps and web services from specific cloud providers. This framework enables developers build | ||
applications or platforms using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) | ||
in a completely [serverless approach](https://github.com/MitocGroup/deep-framework#appendix-a-serverless-architecture). | ||
@@ -26,14 +26,22 @@ > At this moment only [Amazon Web Services](https://aws.amazon.com) is supported. Developers are encouraged to add support | ||
1. `npm install deepify -g` # Install DEEP CLI, also known as deepify | ||
1. Install DEEP CLI, also known as deepify: | ||
`npm install deepify -g` | ||
> deepify is a collection of tools that empower developers and devops engineers to automate | ||
the management of web apps built on top of DEEP ecosystem. | ||
2. `deepify helloworld ~/deep-hello-world` # Using deepify, dump locally the helloworld example | ||
2. Using deepify, dump locally the helloworld example: | ||
`deepify helloworld ~/deep-hello-world` | ||
> deepify will clone the repository from GitHub and pull all the dependencies in one place. | ||
3. `deepify server ~/deep-hello-world -o` # Using deepify, run locally the helloworld example | ||
3. Using deepify, run locally the helloworld example: | ||
`deepify server ~/deep-hello-world -o` | ||
> deepify launches a web server that can be used for local development, without making calls | ||
to web services from cloud providers like AWS. | ||
4. `deepify deploy ~/deep-hello-world` # Using deepify, deploy to AWS the helloworld example | ||
4. Using deepify, deploy to AWS the helloworld example: | ||
`deepify deploy ~/deep-hello-world` | ||
> deepify provisions the infrastructure and deploys the web app, empowering developers and | ||
@@ -206,2 +214,2 @@ devops engineers to automate the process. | ||
> In summary: We empowers lego consumers to license curated lego pieces from lego producers. | ||
> In summary: We empower lego consumers to license curated lego pieces from a marketplace of lego producers. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45512
779
213