@webex/common-evented 3.0.0-beta.13 → 3.0.0-beta.15
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.
- package/README.md +2 -3
- package/package.json +4 -4
- package/test/unit/spec/evented.js +1 -1
package/README.md
CHANGED
|
@@ -20,18 +20,17 @@ npm install --save @webex/common-evented
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
-
|
|
24
23
|
const evented = require(`@webex/common-evented`);
|
|
25
24
|
const Events = require(`ampersand-events`);
|
|
26
25
|
|
|
27
26
|
class X extends Events {
|
|
28
27
|
@evented
|
|
29
|
-
prop = null
|
|
28
|
+
prop = null;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
const x = new X();
|
|
33
32
|
x.on(`change:prop`, () => {
|
|
34
|
-
console.log(x.prop)
|
|
33
|
+
console.log(x.prop);
|
|
35
34
|
// => 6
|
|
36
35
|
});
|
|
37
36
|
x.prop = 6;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/common-evented",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.15",
|
|
4
4
|
"description": "Class property decorator the adds change events to properties",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@webex/common": "3.0.0-beta.
|
|
23
|
+
"@webex/common": "3.0.0-beta.15"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@webex/common-evented": "3.0.0-beta.
|
|
27
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
26
|
+
"@webex/common-evented": "3.0.0-beta.15",
|
|
27
|
+
"@webex/test-helper-chai": "3.0.0-beta.15",
|
|
28
28
|
"ampersand-events": "^2.0.2",
|
|
29
29
|
"sinon": "^9.2.4"
|
|
30
30
|
}
|