@paris-ias/trees 2.0.0 → 2.0.2
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/dist/form/actions.d.ts +1 -129
- package/dist/form/actions.js +17 -2
- package/dist/form/affiliations.d.ts +1 -292
- package/dist/form/affiliations.js +17 -2
- package/dist/form/apps.d.ts +1 -209
- package/dist/form/apps.js +17 -2
- package/dist/form/disciplines.d.ts +1 -40
- package/dist/form/disciplines.js +17 -2
- package/dist/form/events.d.ts +1 -1397
- package/dist/form/events.js +17 -2
- package/dist/form/fellowships.d.ts +1 -2122
- package/dist/form/fellowships.js +17 -2
- package/dist/form/files.d.ts +1 -40
- package/dist/form/files.js +17 -2
- package/dist/form/mailing.d.ts +1 -62
- package/dist/form/mailing.js +17 -2
- package/dist/form/news.d.ts +1 -405
- package/dist/form/news.js +17 -2
- package/dist/form/people.d.ts +1 -1062
- package/dist/form/people.js +17 -2
- package/dist/form/projects.d.ts +1 -564
- package/dist/form/projects.js +17 -2
- package/dist/form/publications.d.ts +1 -615
- package/dist/form/publications.js +17 -2
- package/dist/form/tags.d.ts +1 -54
- package/dist/form/tags.js +17 -2
- package/dist/form/users.d.ts +1 -946
- package/dist/form/users.js +17 -2
- package/dist/list/actions.d.ts +1 -103
- package/dist/list/actions.js +17 -2
- package/dist/list/affiliations.d.ts +1 -103
- package/dist/list/affiliations.js +17 -2
- package/dist/list/apps.d.ts +1 -103
- package/dist/list/apps.js +17 -2
- package/dist/list/disciplines.d.ts +1 -101
- package/dist/list/disciplines.js +17 -2
- package/dist/list/events.d.ts +1 -172
- package/dist/list/events.js +17 -2
- package/dist/list/fellowships.d.ts +1 -123
- package/dist/list/fellowships.js +17 -2
- package/dist/list/files.d.ts +1 -101
- package/dist/list/files.js +17 -2
- package/dist/list/mailing.d.ts +1 -101
- package/dist/list/mailing.js +17 -2
- package/dist/list/news.d.ts +1 -103
- package/dist/list/news.js +17 -2
- package/dist/list/people.d.ts +1 -153
- package/dist/list/people.js +17 -2
- package/dist/list/projects.d.ts +1 -103
- package/dist/list/projects.js +17 -2
- package/dist/list/publications.d.ts +1 -127
- package/dist/list/publications.js +17 -2
- package/dist/list/tags.d.ts +1 -103
- package/dist/list/tags.js +17 -2
- package/dist/list/users.d.ts +1 -153
- package/dist/list/users.js +17 -2
- package/package.json +17 -13
- package/readme.md +94 -17
package/dist/form/tags.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
// Deep freeze utility to make exports immutable
|
|
2
|
+
const deepFreeze = (obj) => {
|
|
3
|
+
Object.freeze(obj);
|
|
4
|
+
Object.getOwnPropertyNames(obj).forEach(prop => {
|
|
5
|
+
if (obj[prop] !== null
|
|
6
|
+
&& (typeof obj[prop] === "object" || typeof obj[prop] === "function")
|
|
7
|
+
&& !Object.isFrozen(obj[prop])) {
|
|
8
|
+
deepFreeze(obj[prop]);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
return obj;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const data = {
|
|
2
15
|
"_defaults": {
|
|
3
16
|
"name": "",
|
|
4
17
|
"description": "",
|
|
@@ -35,4 +48,6 @@ export default {
|
|
|
35
48
|
"meta": "icon"
|
|
36
49
|
}
|
|
37
50
|
}
|
|
38
|
-
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default deepFreeze(data);
|