module-connector
Advanced tools
Comparing version 1.0.7 to 1.0.8
'use strict' | ||
/** | ||
* @version 1.0.7 | ||
* @version 1.0.8 | ||
* @author Jhonnattan Rivera | ||
@@ -10,3 +10,3 @@ * @description | ||
constructor() { | ||
constructor( objectDefaultData ) { | ||
@@ -25,2 +25,7 @@ /** @boolean */ | ||
// set message when new instance is created | ||
if( typeof objectDefaultData === "string" ){ | ||
this.message = objectDefaultData; | ||
} | ||
Object.preventExtensions(this); | ||
@@ -27,0 +32,0 @@ }; |
{ | ||
"name": "module-connector", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "object used to connect different backend and frontend components. in order to better control the different scenarios that could occur with the communication of these", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -73,2 +73,11 @@ # module-connector | ||
also can define another message when new instance is create: | ||
```javascript | ||
//create default output from module connector | ||
let output = new moduleConnector( "another_default_message" ); | ||
``` | ||
### Faileds methods | ||
@@ -75,0 +84,0 @@ |
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
13688
9
75
133