@leafer/decorator 1.0.0-alpha.1 → 1.0.0-alpha.6
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/package.json +8 -6
- package/src/data.ts +2 -2
- package/src/rewrite.ts +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/decorator",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"description": "@leafer/decorator",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.ts",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
9
11
|
"repository": {
|
|
10
12
|
"type": "git",
|
|
11
13
|
"url": "https://github.com/leaferjs/leafer.git"
|
|
@@ -17,10 +19,10 @@
|
|
|
17
19
|
"leaferjs"
|
|
18
20
|
],
|
|
19
21
|
"dependencies": {
|
|
20
|
-
"@leafer/platform": "1.0.0-alpha.
|
|
21
|
-
"@leafer/debug": "1.0.0-alpha.
|
|
22
|
+
"@leafer/platform": "1.0.0-alpha.6",
|
|
23
|
+
"@leafer/debug": "1.0.0-alpha.6"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
24
|
-
|
|
26
|
+
"@leafer/interface": "1.0.0-alpha.6"
|
|
25
27
|
}
|
|
26
|
-
}
|
|
28
|
+
}
|
package/src/data.ts
CHANGED
|
@@ -157,7 +157,7 @@ export function sortType(defaultValue?: __Value) {
|
|
|
157
157
|
// get
|
|
158
158
|
|
|
159
159
|
export function dataProcessor(processor: IObject) {
|
|
160
|
-
return (target: ILeaf,
|
|
160
|
+
return (target: ILeaf, _key: string) => {
|
|
161
161
|
defineKey(target, '__DataProcessor', {
|
|
162
162
|
get() { return processor }
|
|
163
163
|
})
|
|
@@ -165,7 +165,7 @@ export function dataProcessor(processor: IObject) {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
export function layoutProcessor(processor: IObject) {
|
|
168
|
-
return (target: ILeaf,
|
|
168
|
+
return (target: ILeaf, _key: string) => {
|
|
169
169
|
defineKey(target, '__LayoutProcessor', {
|
|
170
170
|
get() { return processor }
|
|
171
171
|
})
|