@decaf-ts/core 0.5.42 → 0.5.43
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/LICENSE.md +185 -17
- package/README.md +23 -2
- package/dist/core.cjs +2 -5776
- package/dist/core.cjs.map +1 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +1 -0
- package/lib/esm/identity/decorators.js +1 -1
- package/lib/esm/identity/decorators.js.map +1 -0
- package/lib/esm/identity/index.js +1 -1
- package/lib/esm/identity/index.js.map +1 -0
- package/lib/esm/identity/utils.js +1 -1
- package/lib/esm/identity/utils.js.map +1 -0
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/interfaces/ErrorParser.js +1 -1
- package/lib/esm/interfaces/ErrorParser.js.map +1 -0
- package/lib/esm/interfaces/Executor.js +1 -1
- package/lib/esm/interfaces/Executor.js.map +1 -0
- package/lib/esm/interfaces/Observable.js +1 -1
- package/lib/esm/interfaces/Observable.js.map +1 -0
- package/lib/esm/interfaces/Observer.js +1 -1
- package/lib/esm/interfaces/Observer.js.map +1 -0
- package/lib/esm/interfaces/Paginatable.js +1 -1
- package/lib/esm/interfaces/Paginatable.js.map +1 -0
- package/lib/esm/interfaces/Queriable.js +1 -1
- package/lib/esm/interfaces/Queriable.js.map +1 -0
- package/lib/esm/interfaces/RawExecutor.js +1 -1
- package/lib/esm/interfaces/RawExecutor.js.map +1 -0
- package/lib/esm/interfaces/SequenceOptions.js +1 -1
- package/lib/esm/interfaces/SequenceOptions.js.map +1 -0
- package/lib/esm/interfaces/index.js +1 -1
- package/lib/esm/interfaces/index.js.map +1 -0
- package/lib/esm/model/BaseModel.js +1 -1
- package/lib/esm/model/BaseModel.js.map +1 -0
- package/lib/esm/model/construction.js +1 -1
- package/lib/esm/model/construction.js.map +1 -0
- package/lib/esm/model/decorators.js +1 -1
- package/lib/esm/model/decorators.js.map +1 -0
- package/lib/esm/model/index.js +1 -1
- package/lib/esm/model/index.js.map +1 -0
- package/lib/esm/model/types.js +1 -1
- package/lib/esm/model/types.js.map +1 -0
- package/lib/esm/overrides/Metadata.js +1 -1
- package/lib/esm/overrides/Metadata.js.map +1 -0
- package/lib/esm/overrides/index.js +1 -1
- package/lib/esm/overrides/index.js.map +1 -0
- package/lib/esm/overrides/overrides.js +1 -1
- package/lib/esm/overrides/overrides.js.map +1 -0
- package/lib/esm/persistence/Adapter.js +1 -1
- package/lib/esm/persistence/Adapter.js.map +1 -0
- package/lib/esm/persistence/Dispatch.js +1 -1
- package/lib/esm/persistence/Dispatch.js.map +1 -0
- package/lib/esm/persistence/ObserverHandler.js +1 -1
- package/lib/esm/persistence/ObserverHandler.js.map +1 -0
- package/lib/esm/persistence/Sequence.js +1 -1
- package/lib/esm/persistence/Sequence.js.map +1 -0
- package/lib/esm/persistence/constants.js +1 -1
- package/lib/esm/persistence/constants.js.map +1 -0
- package/lib/esm/persistence/decorators.js +1 -1
- package/lib/esm/persistence/decorators.js.map +1 -0
- package/lib/esm/persistence/errors.js +1 -1
- package/lib/esm/persistence/errors.js.map +1 -0
- package/lib/esm/persistence/index.js +1 -1
- package/lib/esm/persistence/index.js.map +1 -0
- package/lib/esm/persistence/types.js +1 -1
- package/lib/esm/persistence/types.js.map +1 -0
- package/lib/esm/query/Condition.js +1 -1
- package/lib/esm/query/Condition.js.map +1 -0
- package/lib/esm/query/MethodQueryBuilder.js +1 -1
- package/lib/esm/query/MethodQueryBuilder.js.map +1 -0
- package/lib/esm/query/Paginator.js +1 -1
- package/lib/esm/query/Paginator.js.map +1 -0
- package/lib/esm/query/Statement.js +1 -1
- package/lib/esm/query/Statement.js.map +1 -0
- package/lib/esm/query/constants.js +1 -1
- package/lib/esm/query/constants.js.map +1 -0
- package/lib/esm/query/decorators.js +1 -1
- package/lib/esm/query/decorators.js.map +1 -0
- package/lib/esm/query/errors.js +1 -1
- package/lib/esm/query/errors.js.map +1 -0
- package/lib/esm/query/index.js +1 -1
- package/lib/esm/query/index.js.map +1 -0
- package/lib/esm/query/options.js +1 -1
- package/lib/esm/query/options.js.map +1 -0
- package/lib/esm/query/selectors.js +1 -1
- package/lib/esm/query/selectors.js.map +1 -0
- package/lib/esm/query/types.js +1 -1
- package/lib/esm/query/types.js.map +1 -0
- package/lib/esm/query/utils.js +1 -1
- package/lib/esm/query/utils.js.map +1 -0
- package/lib/esm/ram/RamAdapter.js +1 -1
- package/lib/esm/ram/RamAdapter.js.map +1 -0
- package/lib/esm/ram/RamContext.js +1 -1
- package/lib/esm/ram/RamContext.js.map +1 -0
- package/lib/esm/ram/RamPaginator.js +1 -1
- package/lib/esm/ram/RamPaginator.js.map +1 -0
- package/lib/esm/ram/RamSequence.js +1 -1
- package/lib/esm/ram/RamSequence.js.map +1 -0
- package/lib/esm/ram/RamStatement.js +1 -1
- package/lib/esm/ram/RamStatement.js.map +1 -0
- package/lib/esm/ram/constants.js +1 -1
- package/lib/esm/ram/constants.js.map +1 -0
- package/lib/esm/ram/handlers.js +1 -1
- package/lib/esm/ram/handlers.js.map +1 -0
- package/lib/esm/ram/index.js +1 -1
- package/lib/esm/ram/index.js.map +1 -0
- package/lib/esm/ram/model/RamSequenceModel.js +1 -1
- package/lib/esm/ram/model/RamSequenceModel.js.map +1 -0
- package/lib/esm/ram/model/index.js +1 -1
- package/lib/esm/ram/model/index.js.map +1 -0
- package/lib/esm/ram/types.js +1 -1
- package/lib/esm/ram/types.js.map +1 -0
- package/lib/esm/repository/Repository.js +1 -1
- package/lib/esm/repository/Repository.js.map +1 -0
- package/lib/esm/repository/constants.js +1 -1
- package/lib/esm/repository/constants.js.map +1 -0
- package/lib/esm/repository/decorators.js +1 -1
- package/lib/esm/repository/decorators.js.map +1 -0
- package/lib/esm/repository/errors.js +1 -1
- package/lib/esm/repository/errors.js.map +1 -0
- package/lib/esm/repository/index.js +1 -1
- package/lib/esm/repository/index.js.map +1 -0
- package/lib/esm/repository/injectables.js +1 -1
- package/lib/esm/repository/injectables.js.map +1 -0
- package/lib/esm/repository/types.js +1 -1
- package/lib/esm/repository/types.js.map +1 -0
- package/lib/esm/repository/utils.js +1 -1
- package/lib/esm/repository/utils.js.map +1 -0
- package/lib/esm/utils/decorators.js +1 -1
- package/lib/esm/utils/decorators.js.map +1 -0
- package/lib/esm/utils/errors.js +1 -1
- package/lib/esm/utils/errors.js.map +1 -0
- package/lib/esm/utils/index.js +1 -1
- package/lib/esm/utils/index.js.map +1 -0
- package/lib/identity/decorators.cjs +1 -1
- package/lib/identity/decorators.js.map +1 -0
- package/lib/identity/index.cjs +1 -1
- package/lib/identity/index.js.map +1 -0
- package/lib/identity/utils.cjs +1 -1
- package/lib/identity/utils.js.map +1 -0
- package/lib/index.cjs +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -0
- package/lib/interfaces/ErrorParser.cjs +1 -1
- package/lib/interfaces/ErrorParser.js.map +1 -0
- package/lib/interfaces/Executor.cjs +1 -1
- package/lib/interfaces/Executor.js.map +1 -0
- package/lib/interfaces/Observable.cjs +1 -1
- package/lib/interfaces/Observable.js.map +1 -0
- package/lib/interfaces/Observer.cjs +1 -1
- package/lib/interfaces/Observer.js.map +1 -0
- package/lib/interfaces/Paginatable.cjs +1 -1
- package/lib/interfaces/Paginatable.js.map +1 -0
- package/lib/interfaces/Queriable.cjs +1 -1
- package/lib/interfaces/Queriable.js.map +1 -0
- package/lib/interfaces/RawExecutor.cjs +1 -1
- package/lib/interfaces/RawExecutor.js.map +1 -0
- package/lib/interfaces/SequenceOptions.cjs +1 -1
- package/lib/interfaces/SequenceOptions.js.map +1 -0
- package/lib/interfaces/index.cjs +1 -1
- package/lib/interfaces/index.js.map +1 -0
- package/lib/model/BaseModel.cjs +1 -1
- package/lib/model/BaseModel.js.map +1 -0
- package/lib/model/construction.cjs +1 -1
- package/lib/model/construction.js.map +1 -0
- package/lib/model/decorators.cjs +1 -1
- package/lib/model/decorators.js.map +1 -0
- package/lib/model/index.cjs +1 -1
- package/lib/model/index.js.map +1 -0
- package/lib/model/types.cjs +1 -1
- package/lib/model/types.js.map +1 -0
- package/lib/overrides/Metadata.cjs +1 -1
- package/lib/overrides/Metadata.js.map +1 -0
- package/lib/overrides/index.cjs +1 -1
- package/lib/overrides/index.js.map +1 -0
- package/lib/overrides/overrides.cjs +1 -1
- package/lib/overrides/overrides.js.map +1 -0
- package/lib/persistence/Adapter.cjs +1 -1
- package/lib/persistence/Adapter.js.map +1 -0
- package/lib/persistence/Dispatch.cjs +1 -1
- package/lib/persistence/Dispatch.js.map +1 -0
- package/lib/persistence/ObserverHandler.cjs +1 -1
- package/lib/persistence/ObserverHandler.js.map +1 -0
- package/lib/persistence/Sequence.cjs +1 -1
- package/lib/persistence/Sequence.js.map +1 -0
- package/lib/persistence/constants.cjs +1 -1
- package/lib/persistence/constants.js.map +1 -0
- package/lib/persistence/decorators.cjs +1 -1
- package/lib/persistence/decorators.js.map +1 -0
- package/lib/persistence/errors.cjs +1 -1
- package/lib/persistence/errors.js.map +1 -0
- package/lib/persistence/index.cjs +1 -1
- package/lib/persistence/index.js.map +1 -0
- package/lib/persistence/types.cjs +1 -1
- package/lib/persistence/types.js.map +1 -0
- package/lib/query/Condition.cjs +1 -1
- package/lib/query/Condition.js.map +1 -0
- package/lib/query/MethodQueryBuilder.cjs +1 -1
- package/lib/query/MethodQueryBuilder.js.map +1 -0
- package/lib/query/Paginator.cjs +1 -1
- package/lib/query/Paginator.js.map +1 -0
- package/lib/query/Statement.cjs +1 -1
- package/lib/query/Statement.js.map +1 -0
- package/lib/query/constants.cjs +1 -1
- package/lib/query/constants.js.map +1 -0
- package/lib/query/decorators.cjs +1 -1
- package/lib/query/decorators.js.map +1 -0
- package/lib/query/errors.cjs +1 -1
- package/lib/query/errors.js.map +1 -0
- package/lib/query/index.cjs +1 -1
- package/lib/query/index.js.map +1 -0
- package/lib/query/options.cjs +1 -1
- package/lib/query/options.js.map +1 -0
- package/lib/query/selectors.cjs +1 -1
- package/lib/query/selectors.js.map +1 -0
- package/lib/query/types.cjs +1 -1
- package/lib/query/types.js.map +1 -0
- package/lib/query/utils.cjs +1 -1
- package/lib/query/utils.js.map +1 -0
- package/lib/ram/RamAdapter.cjs +1 -1
- package/lib/ram/RamAdapter.js.map +1 -0
- package/lib/ram/RamContext.cjs +1 -1
- package/lib/ram/RamContext.js.map +1 -0
- package/lib/ram/RamPaginator.cjs +1 -1
- package/lib/ram/RamPaginator.js.map +1 -0
- package/lib/ram/RamSequence.cjs +1 -1
- package/lib/ram/RamSequence.js.map +1 -0
- package/lib/ram/RamStatement.cjs +1 -1
- package/lib/ram/RamStatement.js.map +1 -0
- package/lib/ram/constants.cjs +1 -1
- package/lib/ram/constants.js.map +1 -0
- package/lib/ram/handlers.cjs +1 -1
- package/lib/ram/handlers.js.map +1 -0
- package/lib/ram/index.cjs +1 -1
- package/lib/ram/index.js.map +1 -0
- package/lib/ram/model/RamSequenceModel.cjs +1 -1
- package/lib/ram/model/RamSequenceModel.js.map +1 -0
- package/lib/ram/model/index.cjs +1 -1
- package/lib/ram/model/index.js.map +1 -0
- package/lib/ram/types.cjs +1 -1
- package/lib/ram/types.js.map +1 -0
- package/lib/repository/Repository.cjs +1 -1
- package/lib/repository/Repository.js.map +1 -0
- package/lib/repository/constants.cjs +1 -1
- package/lib/repository/constants.js.map +1 -0
- package/lib/repository/decorators.cjs +1 -1
- package/lib/repository/decorators.js.map +1 -0
- package/lib/repository/errors.cjs +1 -1
- package/lib/repository/errors.js.map +1 -0
- package/lib/repository/index.cjs +1 -1
- package/lib/repository/index.js.map +1 -0
- package/lib/repository/injectables.cjs +1 -1
- package/lib/repository/injectables.js.map +1 -0
- package/lib/repository/types.cjs +1 -1
- package/lib/repository/types.js.map +1 -0
- package/lib/repository/utils.cjs +1 -1
- package/lib/repository/utils.js.map +1 -0
- package/lib/utils/decorators.cjs +1 -1
- package/lib/utils/decorators.js.map +1 -0
- package/lib/utils/errors.cjs +1 -1
- package/lib/utils/errors.js.map +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js.map +1 -0
- package/package.json +12 -22
- package/dist/core.esm.cjs +0 -5712
package/LICENSE.md
CHANGED
|
@@ -1,22 +1,190 @@
|
|
|
1
|
-
|
|
1
|
+
Mozilla Public License Version 2.0
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
1.0. Definitions
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
1.1. "Contributor"
|
|
6
|
+
means each individual or legal entity that creates, contributes to the
|
|
7
|
+
creation of, or owns Covered Software.
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
1.2. "Contributor Version"
|
|
10
|
+
means the combination of the Contributions of others (if any) used by a
|
|
11
|
+
Contributor and that particular Contributor's Contribution.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
13
|
+
1.3. "Covered Software"
|
|
14
|
+
means Source Code Form to which the initial Contributor has attached the
|
|
15
|
+
notice in Exhibit A, the Executable Form of such Source Code Form, and
|
|
16
|
+
Modifications of such Source Code Form.
|
|
22
17
|
|
|
18
|
+
1.4. "Incompatible With Secondary Licenses"
|
|
19
|
+
means that the initial Contributor has attached the notice described in
|
|
20
|
+
Exhibit B to the Covered Software; the Covered Software is therefore
|
|
21
|
+
governed by the terms of this License without the option for the
|
|
22
|
+
additional permissions of a Secondary License.
|
|
23
|
+
|
|
24
|
+
1.5. "Executable Form"
|
|
25
|
+
means any form of the work other than Source Code Form.
|
|
26
|
+
|
|
27
|
+
1.6. "Larger Work"
|
|
28
|
+
means a work which combines Covered Software with other material, in a
|
|
29
|
+
separate file or files, that is not Covered Software.
|
|
30
|
+
|
|
31
|
+
1.7. "License"
|
|
32
|
+
means this document.
|
|
33
|
+
|
|
34
|
+
1.8. "Licensable"
|
|
35
|
+
means having the right to grant, to the maximum extent possible, whether
|
|
36
|
+
at the time of the making or afterwards, any and all of the rights
|
|
37
|
+
conveyed by this License.
|
|
38
|
+
|
|
39
|
+
1.9. "Modifications"
|
|
40
|
+
means any addition to or deletion from the contents of Covered Software
|
|
41
|
+
or any new file that contains Covered Software.
|
|
42
|
+
|
|
43
|
+
1.10. "Patent Claims"
|
|
44
|
+
means any patent claim(s), now owned or hereafter acquired, including
|
|
45
|
+
without limitation, method, process, and apparatus claims, in any patent
|
|
46
|
+
Licensable by grantor.
|
|
47
|
+
|
|
48
|
+
1.11. "Secondary License"
|
|
49
|
+
means either the GNU General Public License, Version 2.0, the GNU Lesser
|
|
50
|
+
General Public License, Version 2.1, or any subsequent versions of those
|
|
51
|
+
licenses that are designated as a Secondary License in the notice in
|
|
52
|
+
Exhibit A.
|
|
53
|
+
|
|
54
|
+
1.12. "Source Code Form"
|
|
55
|
+
means the form of the work preferred for making modifications.
|
|
56
|
+
|
|
57
|
+
1.13. "You" (or "Your")
|
|
58
|
+
means an individual or a legal entity exercising rights under, and
|
|
59
|
+
complying with all of the terms of, this License. For legal entities,
|
|
60
|
+
"You" includes any entity that controls, is controlled by, or is under
|
|
61
|
+
common control with You. For purposes of this definition, "control"
|
|
62
|
+
means (a) the power, direct or indirect, to cause the direction or
|
|
63
|
+
management of such entity, whether by contract or otherwise, or (b)
|
|
64
|
+
ownership of more than fifty percent (50%) of the outstanding shares or
|
|
65
|
+
beneficial ownership of such entity.
|
|
66
|
+
|
|
67
|
+
2.0. License Grants and Conditions
|
|
68
|
+
|
|
69
|
+
2.1. Grants
|
|
70
|
+
|
|
71
|
+
Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive
|
|
72
|
+
license:
|
|
73
|
+
|
|
74
|
+
a. under intellectual property rights (other than patent or trademark)
|
|
75
|
+
Licensable by such Contributor to use, reproduce, make available,
|
|
76
|
+
modify, display, perform, distribute, and otherwise exploit its
|
|
77
|
+
Contributions, either on an exclusive or non-exclusive basis; and
|
|
78
|
+
|
|
79
|
+
b. under Patent Claims to make, use, sell, offer for sale, have made,
|
|
80
|
+
import, and otherwise transfer the Contribution(s) of such
|
|
81
|
+
Contributor, if any, in the Covered Software.
|
|
82
|
+
|
|
83
|
+
2.2. Effective Date
|
|
84
|
+
|
|
85
|
+
The licenses granted in Section 2.1 are effective on the date the Contributor
|
|
86
|
+
first makes the Covered Software available under this License.
|
|
87
|
+
|
|
88
|
+
2.3. Limitations on the Grants
|
|
89
|
+
|
|
90
|
+
The licenses granted in this Section 2 are subject to the following
|
|
91
|
+
limitations:
|
|
92
|
+
|
|
93
|
+
a. No trademark rights are granted under this License.
|
|
94
|
+
|
|
95
|
+
b. This License does not grant any rights in the patents of any
|
|
96
|
+
Contributor except as expressly stated in Section 2.1(b).
|
|
97
|
+
|
|
98
|
+
3.0. Distribution Obligations
|
|
99
|
+
|
|
100
|
+
3.1. Distribution of Source Form
|
|
101
|
+
|
|
102
|
+
All distribution of Covered Software in Source Code Form, including any
|
|
103
|
+
Modifications that You create or to which You contribute, must be under the
|
|
104
|
+
terms of this License. You must inform recipients that the Source Code Form
|
|
105
|
+
of the Covered Software is subject to the terms of this License and include
|
|
106
|
+
a copy of this License in or with the Source Code Form.
|
|
107
|
+
|
|
108
|
+
3.2. Distribution of Executable Form
|
|
109
|
+
|
|
110
|
+
If You distribute Covered Software in Executable Form then:
|
|
111
|
+
|
|
112
|
+
a. such Covered Software must also be made available in Source Code Form,
|
|
113
|
+
as described in Section 3.1, and You must inform recipients of the
|
|
114
|
+
Executable Form how to obtain a complete copy of the corresponding
|
|
115
|
+
Source Code Form in a reasonable manner on or through a medium
|
|
116
|
+
customarily used for software exchange; and
|
|
117
|
+
|
|
118
|
+
b. You may distribute the Executable Form under terms of your choice,
|
|
119
|
+
provided that You do not attempt to limit or alter the recipients'
|
|
120
|
+
rights in the Source Code Form under this License.
|
|
121
|
+
|
|
122
|
+
3.3. Distribution of a Larger Work
|
|
123
|
+
|
|
124
|
+
You may create and distribute a work that combines Covered Software with
|
|
125
|
+
other material, and distribute the Larger Work as a single product. In such
|
|
126
|
+
case, the Covered Software must still be made available under this License
|
|
127
|
+
and must include the notices described in Exhibit A relating to the Covered
|
|
128
|
+
Software.
|
|
129
|
+
|
|
130
|
+
3.4. Notices
|
|
131
|
+
|
|
132
|
+
You must cause each file that You distribute containing Covered Software to
|
|
133
|
+
carry the legal notices described in Exhibit A.
|
|
134
|
+
|
|
135
|
+
4.0. Incompatible With Secondary Licenses
|
|
136
|
+
|
|
137
|
+
If the Covered Software is made available under the terms of this License
|
|
138
|
+
and also made available under the terms of a Secondary License, then the
|
|
139
|
+
terms of the Secondary License apply to the Covered Software in addition to
|
|
140
|
+
this License to the extent the Secondary License grants additional
|
|
141
|
+
permissions. If the Covered Software is not made available under a Secondary
|
|
142
|
+
License, then this License governs its use.
|
|
143
|
+
|
|
144
|
+
5.0. Disclaimer of Warranty
|
|
145
|
+
|
|
146
|
+
Covered Software is provided "as is" without warranty of any kind, either
|
|
147
|
+
express or implied, including, but not limited to, the implied warranties of
|
|
148
|
+
merchantability, fitness for a particular purpose, and noninfringement.
|
|
149
|
+
|
|
150
|
+
6.0. Limitation of Liability
|
|
151
|
+
|
|
152
|
+
In no event and under no legal theory, whether in tort (including
|
|
153
|
+
negligence), contract, or otherwise, unless required by applicable law (such
|
|
154
|
+
as deliberate and grossly negligent acts) or agreed to in writing, shall any
|
|
155
|
+
Contributor be liable to You for damages, including any direct, indirect,
|
|
156
|
+
special, incidental, or consequential damages of any character arising as a
|
|
157
|
+
result of this License or out of the use or inability to use the Covered
|
|
158
|
+
Software (including but not limited to damages for loss of goodwill, work
|
|
159
|
+
stoppage, computer failure or malfunction, or any and all other commercial
|
|
160
|
+
damages or losses), even if such Contributor has been advised of the
|
|
161
|
+
possibility of such damages.
|
|
162
|
+
|
|
163
|
+
7.0. Termination
|
|
164
|
+
|
|
165
|
+
7.1. Termination for Breach
|
|
166
|
+
|
|
167
|
+
This License and the rights granted hereunder will terminate automatically
|
|
168
|
+
if You fail to comply with terms of this License and do not cure such
|
|
169
|
+
breach within thirty (30) days of becoming aware of the breach.
|
|
170
|
+
|
|
171
|
+
7.2. Effect of Termination
|
|
172
|
+
|
|
173
|
+
Upon termination of this License, any rights granted to You under this
|
|
174
|
+
License will terminate, and You must cease all use and distribution of the
|
|
175
|
+
Covered Software except as permitted by applicable law.
|
|
176
|
+
|
|
177
|
+
8.0. Miscellaneous
|
|
178
|
+
|
|
179
|
+
This License constitutes the entire agreement between the parties with
|
|
180
|
+
respect to the subject matter hereof. If any provision of this License is
|
|
181
|
+
held to be unenforceable, that provision shall be reformed only to the
|
|
182
|
+
extent necessary to make it enforceable.
|
|
183
|
+
|
|
184
|
+
Exhibit A - Source Code Form License Notice
|
|
185
|
+
|
|
186
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
187
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
188
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
189
|
+
|
|
190
|
+
Copyright (c) 2025 Tiago Venceslau and Contributors
|
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# Decaf TS — Core Package
|
|
2
4
|
|
|
3
5
|
Decaf Core provides the foundational building blocks for the Decaf TypeScript ecosystem: strongly-typed models, repository pattern, pluggable persistence adapters, a composable query DSL, and pagination/observer utilities. With decorators and an injectable registry, it wires models to repositories and adapters so you can build data access that is framework-agnostic yet fully typed.
|
|
4
6
|
|
|
5
|
-
|
|
6
7
|

|
|
7
8
|

|
|
8
9
|

|
|
@@ -26,6 +27,8 @@ Decaf Core provides the foundational building blocks for the Decaf TypeScript ec
|
|
|
26
27
|
|
|
27
28
|
Documentation [here](https://decaf-ts.github.io/injectable-decorators/), Test results [here](https://decaf-ts.github.io/injectable-decorators/workdocs/reports/html/test-report.html) and Coverage [here](https://decaf-ts.github.io/injectable-decorators/workdocs/reports/coverage/lcov-report/index.html)
|
|
28
29
|
|
|
30
|
+
Minimal size: 13.3 KB kb gzipped
|
|
31
|
+
|
|
29
32
|
|
|
30
33
|
# Core Package — Detailed Description
|
|
31
34
|
|
|
@@ -338,6 +341,24 @@ async function injectablesExample() {
|
|
|
338
341
|
```
|
|
339
342
|
|
|
340
343
|
|
|
344
|
+
## Coding Principles
|
|
345
|
+
|
|
346
|
+
- group similar functionality in folders (analog to namespaces but without any namespace declaration)
|
|
347
|
+
- one class per file;
|
|
348
|
+
- one interface per file (unless interface is just used as a type);
|
|
349
|
+
- group types as other interfaces in a types.ts file per folder;
|
|
350
|
+
- group constants or enums in a constants.ts file per folder;
|
|
351
|
+
- group decorators in a decorators.ts file per folder;
|
|
352
|
+
- always import from the specific file, never from a folder or index file (exceptions for dependencies on other packages);
|
|
353
|
+
- prefer the usage of established design patters where applicable:
|
|
354
|
+
- Singleton (can be an anti-pattern. use with care);
|
|
355
|
+
- factory;
|
|
356
|
+
- observer;
|
|
357
|
+
- strategy;
|
|
358
|
+
- builder;
|
|
359
|
+
- etc;
|
|
360
|
+
|
|
361
|
+
|
|
341
362
|
### Related
|
|
342
363
|
|
|
343
364
|
[](https://github.com/decaf-ts/decaf-ts)
|
|
@@ -377,6 +398,6 @@ So if you can, if this project in any way. either by learning something or simpl
|
|
|
377
398
|
|
|
378
399
|
## License
|
|
379
400
|
|
|
380
|
-
This project is released under the [
|
|
401
|
+
This project is released under the [Mozilla Public License 2.0](./LICENSE.md).
|
|
381
402
|
|
|
382
403
|
By developers, for developers...
|