@liminalfunctions/framework 1.0.72 → 1.0.73
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/F_Security_Models/F_SM_Role_Membership.js.map +1 -1
- package/dist/utils/mongoose_from_zod.d.ts +1 -1
- package/package.json +3 -3
- package/src/F_Security_Models/F_SM_Role_Membership.ts +1 -1
- package/dist/F_Client_Collection_Registry.d.ts +0 -18
- package/dist/F_Client_Collection_Registry.js +0 -36
- package/dist/F_Client_Collection_Registry.js.map +0 -1
- package/dist/code_generation/templates/.gitignore.mustache +0 -383
- package/dist/utils/mongoose_any_paths.d.ts +0 -1
- package/dist/utils/mongoose_any_paths.js +0 -14
- package/dist/utils/mongoose_any_paths.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"F_SM_Role_Membership.js","sourceRoot":"","sources":["../../src/F_Security_Models/F_SM_Role_Membership.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAoD,gBAAgB,EAAa,MAAM,uBAAuB,CAAC;AACtH,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,IAAI,wBAAwB,GAAG;IAC3B,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,QAAQ;CACrB,CAAA;AAED,MAAM,OAAO,oBAAkF,SAAQ,gBAA0C;IAC7I,aAAa,CAAS;IACtB,aAAa,CAAS;IACtB,mBAAmB,CAAU;IAC7B,0BAA0B,CAA4B;IACtD,qBAAqB,CAAa;IAClC,eAAe,CAA4B;IAC3C,UAAU,CAAa;IAEvB,YAAY,UAAkD,EAC1D,gBAAuD,EACvD,0BAAqD,EACrD,eAA0C,EAC1C,qBAAkC,EAClC,UAAuB,EACvB,aAAa,GAAG,SAAS,EACzB,aAAa,GAAG,SAAS;QAEzB,KAAK,CAAC,UA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;YAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,eAAe,CAAC,aAAa,gCAAgC,IAAI,CAAC,UAAU,CAAC,sBAAsB,QAAQ,CAAC,CAAC;YAAC,OAAO,KAAK,CAAC;QAAC,CAAC;QACjO,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAAC;IAClH,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,GAAY,EAAE,GAAa,EAAE,SAAoB;QAC9E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC1B,CAAC;CACJ"}
|
|
@@ -6,6 +6,6 @@ export declare const z_mongodb_id_optional: z.ZodCustom<string, string>;
|
|
|
6
6
|
export declare const z_mongodb_id_nullable: z.ZodCustom<string, string>;
|
|
7
7
|
export declare function mongoose_from_zod<T>(schema_name: string, zod_definition: z.core.$ZodType, database?: typeof mongoose): mongoose.Model<T, {}, {}, {}, mongoose.IfAny<T, any, mongoose.Document<unknown, {}, T, {}, mongoose.DefaultSchemaOptions> & mongoose.Require_id<T> & {
|
|
8
8
|
__v: number;
|
|
9
|
-
}
|
|
9
|
+
} & mongoose.AddDefaultId<T, {}, mongoose.DefaultSchemaOptions>>, any, T>;
|
|
10
10
|
export declare function schema_from_zod(zod_definition: z.core.$ZodType): any;
|
|
11
11
|
export declare function schema_entry_from_zod(zod_definition: z.ZodType, loop_detector: Map<any, validator_group>): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liminalfunctions/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "22.x.x"
|
|
6
6
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "npm run-script build && mocha --node-option env-file=\"./test/.env\"",
|
|
11
|
-
"build": "tsc && rimraf \"./dist/code_generation/templates\" &&
|
|
11
|
+
"build": "tsc && rimraf \"./dist/code_generation/templates\" && cpy \"./src/code_generation/templates/*.mustache\" \"./dist/code_generation/templates\""
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
"./index.js": "./dist/index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@types/mocha": "^10.0.10",
|
|
32
32
|
"@types/mustache": "^4.2.6",
|
|
33
33
|
"@types/node": "^22.10.7",
|
|
34
|
+
"cpy-cli": "^7.0.0",
|
|
34
35
|
"got": "^14.6.0",
|
|
35
36
|
"mocha": "^11.1.0",
|
|
36
37
|
"rimraf": "^6.0.1",
|
|
@@ -45,7 +46,6 @@
|
|
|
45
46
|
"zod": "^4.0.0"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"copyfiles": "^2.4.1",
|
|
49
49
|
"escape-string-regexp": "^5.0.0",
|
|
50
50
|
"mustache": "^4.2.0"
|
|
51
51
|
}
|
|
@@ -60,7 +60,7 @@ export class F_SM_Role_Membership<Collection_ID extends string, ZodSchema extend
|
|
|
60
60
|
[this.user_id_field]: user_id,
|
|
61
61
|
};
|
|
62
62
|
if(this.layer_collection_id){
|
|
63
|
-
find[`${this.layer_collection_id}_id`] = new mongoose.Types.ObjectId(layer_document_id)
|
|
63
|
+
find[`${this.layer_collection_id}_id`] = new mongoose.Types.ObjectId(layer_document_id as string)
|
|
64
64
|
}
|
|
65
65
|
let role_memberships = await this.role_membership_collection.mongoose_model.find(find, {}, {lean: true})
|
|
66
66
|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod/v4';
|
|
2
|
-
import { F_Collection } from './F_Collection.js';
|
|
3
|
-
export declare class F_Layer<Layer_ID extends string, Layers = {}, Collections = {}> {
|
|
4
|
-
path: string[];
|
|
5
|
-
layer_id: Layer_ID;
|
|
6
|
-
collections: Collections;
|
|
7
|
-
layers: Layers;
|
|
8
|
-
constructor(layer_id: Layer_ID);
|
|
9
|
-
add_layer<Child_Layer_ID extends string, Child_Layers, Child_Collections>(layer: F_Layer<Child_Layer_ID, Child_Layers, Child_Collections>): F_Layer<Layer_ID, Layers & {
|
|
10
|
-
[key in Child_Layer_ID]: F_Layer<Child_Layer_ID, Child_Layers, Child_Collections>;
|
|
11
|
-
}, Collections>;
|
|
12
|
-
add_collection<Collection_ID extends string, ZodSchema extends z.ZodObject>(collection: F_Collection<Collection_ID, ZodSchema>): F_Layer<Layer_ID, Layers, Collections & {
|
|
13
|
-
[key in Collection_ID]: F_Collection<Collection_ID, ZodSchema>;
|
|
14
|
-
}>;
|
|
15
|
-
clone(): typeof this;
|
|
16
|
-
layer<Layer_ID extends keyof Layers>(layer_id: Layer_ID): Layers[Layer_ID];
|
|
17
|
-
collection<Collection_ID extends keyof Collections>(collection_id: Collection_ID): Collections[Collection_ID];
|
|
18
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export class F_Layer {
|
|
2
|
-
path;
|
|
3
|
-
layer_id;
|
|
4
|
-
collections;
|
|
5
|
-
layers;
|
|
6
|
-
constructor(layer_id) {
|
|
7
|
-
this.layer_id = layer_id;
|
|
8
|
-
this.collections = {};
|
|
9
|
-
this.layers = {};
|
|
10
|
-
}
|
|
11
|
-
add_layer(layer) {
|
|
12
|
-
let result = this.clone();
|
|
13
|
-
result.layers[layer.layer_id] = layer;
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
add_collection(collection) {
|
|
17
|
-
let result = this.clone();
|
|
18
|
-
result.collections[collection.collection_id] = collection;
|
|
19
|
-
return result;
|
|
20
|
-
}
|
|
21
|
-
clone() {
|
|
22
|
-
let clone = new F_Layer(this.layer_id);
|
|
23
|
-
clone.collections = Object.assign({}, this.collections);
|
|
24
|
-
for (let [child_layer_id, child_layer] of Object.entries(this.layers)) {
|
|
25
|
-
clone.layers[child_layer_id] = child_layer.clone();
|
|
26
|
-
}
|
|
27
|
-
return clone;
|
|
28
|
-
}
|
|
29
|
-
layer(layer_id) {
|
|
30
|
-
return this.layers[layer_id];
|
|
31
|
-
}
|
|
32
|
-
collection(collection_id) {
|
|
33
|
-
return this.collections[collection_id];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=F_Client_Collection_Registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"F_Client_Collection_Registry.js","sourceRoot":"","sources":["../src/F_Client_Collection_Registry.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;IAChB,IAAI,CAAU;IACd,QAAQ,CAAU;IAClB,WAAW,CAAc;IACzB,MAAM,CAAS;IAEf,YAAY,QAAkB;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,EAAiB,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,EAAY,CAAC;IAC/B,CAAC;IAED,SAAS,CAAiE,KAA+D;QAMrI,IAAI,MAAM,GAAG,IAAI,CAAC,KAAK,EAItB,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;QACtC,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,cAAc,CAA8D,UAAkD;QAM1H,IAAI,MAAM,GAAG,IAAI,CAAC,KAAK,EAItB,CAAC;QAEF,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC;QAC1D,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK;QACD,IAAI,KAAK,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAgB,CAAC;QACtD,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACxD,KAAI,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAC,CAAC;YAElE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC;QACvD,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,KAAK,CAAgC,QAAkB;QACnD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IAED,UAAU,CAA0C,aAA4B;QAC5E,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC;CACJ"}
|
|
@@ -1,383 +0,0 @@
|
|
|
1
|
-
.env
|
|
2
|
-
/test/tmp
|
|
3
|
-
|
|
4
|
-
## Ignore Visual Studio temporary files, build results, and
|
|
5
|
-
## files generated by popular Visual Studio add-ons.
|
|
6
|
-
##
|
|
7
|
-
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
|
8
|
-
|
|
9
|
-
# User-specific files
|
|
10
|
-
*.rsuser
|
|
11
|
-
*.suo
|
|
12
|
-
*.user
|
|
13
|
-
*.userosscache
|
|
14
|
-
*.sln.docstates
|
|
15
|
-
|
|
16
|
-
# User-specific files (MonoDevelop/Xamarin Studio)
|
|
17
|
-
*.userprefs
|
|
18
|
-
|
|
19
|
-
# Mono auto generated files
|
|
20
|
-
mono_crash.*
|
|
21
|
-
|
|
22
|
-
# Build results
|
|
23
|
-
[Dd]ebug/
|
|
24
|
-
[Dd]ebugPublic/
|
|
25
|
-
[Rr]elease/
|
|
26
|
-
[Rr]eleases/
|
|
27
|
-
x64/
|
|
28
|
-
x86/
|
|
29
|
-
[Ww][Ii][Nn]32/
|
|
30
|
-
[Aa][Rr][Mm]/
|
|
31
|
-
[Aa][Rr][Mm]64/
|
|
32
|
-
bld/
|
|
33
|
-
[Bb]in/
|
|
34
|
-
[Oo]bj/
|
|
35
|
-
[Oo]ut/
|
|
36
|
-
[Ll]og/
|
|
37
|
-
[Ll]ogs/
|
|
38
|
-
|
|
39
|
-
# Visual Studio 2015/2017 cache/options directory
|
|
40
|
-
.vs/
|
|
41
|
-
# Uncomment if you have tasks that create the project's static files in wwwroot
|
|
42
|
-
#wwwroot/
|
|
43
|
-
|
|
44
|
-
# Visual Studio 2017 auto generated files
|
|
45
|
-
Generated\ Files/
|
|
46
|
-
|
|
47
|
-
# MSTest test Results
|
|
48
|
-
[Tt]est[Rr]esult*/
|
|
49
|
-
[Bb]uild[Ll]og.*
|
|
50
|
-
|
|
51
|
-
# NUnit
|
|
52
|
-
*.VisualState.xml
|
|
53
|
-
TestResult.xml
|
|
54
|
-
nunit-*.xml
|
|
55
|
-
|
|
56
|
-
# Build Results of an ATL Project
|
|
57
|
-
[Dd]ebugPS/
|
|
58
|
-
[Rr]eleasePS/
|
|
59
|
-
dlldata.c
|
|
60
|
-
|
|
61
|
-
# Benchmark Results
|
|
62
|
-
BenchmarkDotNet.Artifacts/
|
|
63
|
-
|
|
64
|
-
# .NET Core
|
|
65
|
-
project.lock.json
|
|
66
|
-
project.fragment.lock.json
|
|
67
|
-
artifacts/
|
|
68
|
-
|
|
69
|
-
# ASP.NET Scaffolding
|
|
70
|
-
ScaffoldingReadMe.txt
|
|
71
|
-
|
|
72
|
-
# StyleCop
|
|
73
|
-
StyleCopReport.xml
|
|
74
|
-
|
|
75
|
-
# Files built by Visual Studio
|
|
76
|
-
*_i.c
|
|
77
|
-
*_p.c
|
|
78
|
-
*_h.h
|
|
79
|
-
*.ilk
|
|
80
|
-
*.meta
|
|
81
|
-
*.obj
|
|
82
|
-
*.iobj
|
|
83
|
-
*.pch
|
|
84
|
-
*.pdb
|
|
85
|
-
*.ipdb
|
|
86
|
-
*.pgc
|
|
87
|
-
*.pgd
|
|
88
|
-
*.rsp
|
|
89
|
-
*.sbr
|
|
90
|
-
*.tlb
|
|
91
|
-
*.tli
|
|
92
|
-
*.tlh
|
|
93
|
-
*.tmp
|
|
94
|
-
*.tmp_proj
|
|
95
|
-
*_wpftmp.csproj
|
|
96
|
-
*.log
|
|
97
|
-
*.vspscc
|
|
98
|
-
*.vssscc
|
|
99
|
-
.builds
|
|
100
|
-
*.pidb
|
|
101
|
-
*.svclog
|
|
102
|
-
*.scc
|
|
103
|
-
|
|
104
|
-
# Chutzpah Test files
|
|
105
|
-
_Chutzpah*
|
|
106
|
-
|
|
107
|
-
# Visual C++ cache files
|
|
108
|
-
ipch/
|
|
109
|
-
*.aps
|
|
110
|
-
*.ncb
|
|
111
|
-
*.opendb
|
|
112
|
-
*.opensdf
|
|
113
|
-
*.sdf
|
|
114
|
-
*.cachefile
|
|
115
|
-
*.VC.db
|
|
116
|
-
*.VC.VC.opendb
|
|
117
|
-
|
|
118
|
-
# Visual Studio profiler
|
|
119
|
-
*.psess
|
|
120
|
-
*.vsp
|
|
121
|
-
*.vspx
|
|
122
|
-
*.sap
|
|
123
|
-
|
|
124
|
-
# Visual Studio Trace Files
|
|
125
|
-
*.e2e
|
|
126
|
-
|
|
127
|
-
# TFS 2012 Local Workspace
|
|
128
|
-
$tf/
|
|
129
|
-
|
|
130
|
-
# Guidance Automation Toolkit
|
|
131
|
-
*.gpState
|
|
132
|
-
|
|
133
|
-
# ReSharper is a .NET coding add-in
|
|
134
|
-
_ReSharper*/
|
|
135
|
-
*.[Rr]e[Ss]harper
|
|
136
|
-
*.DotSettings.user
|
|
137
|
-
|
|
138
|
-
# TeamCity is a build add-in
|
|
139
|
-
_TeamCity*
|
|
140
|
-
|
|
141
|
-
# DotCover is a Code Coverage Tool
|
|
142
|
-
*.dotCover
|
|
143
|
-
|
|
144
|
-
# AxoCover is a Code Coverage Tool
|
|
145
|
-
.axoCover/*
|
|
146
|
-
!.axoCover/settings.json
|
|
147
|
-
|
|
148
|
-
# Coverlet is a free, cross platform Code Coverage Tool
|
|
149
|
-
coverage*.json
|
|
150
|
-
coverage*.xml
|
|
151
|
-
coverage*.info
|
|
152
|
-
|
|
153
|
-
# Visual Studio code coverage results
|
|
154
|
-
*.coverage
|
|
155
|
-
*.coveragexml
|
|
156
|
-
|
|
157
|
-
# NCrunch
|
|
158
|
-
_NCrunch_*
|
|
159
|
-
.*crunch*.local.xml
|
|
160
|
-
nCrunchTemp_*
|
|
161
|
-
|
|
162
|
-
# MightyMoose
|
|
163
|
-
*.mm.*
|
|
164
|
-
AutoTest.Net/
|
|
165
|
-
|
|
166
|
-
# Web workbench (sass)
|
|
167
|
-
.sass-cache/
|
|
168
|
-
|
|
169
|
-
# Installshield output folder
|
|
170
|
-
[Ee]xpress/
|
|
171
|
-
|
|
172
|
-
# DocProject is a documentation generator add-in
|
|
173
|
-
DocProject/buildhelp/
|
|
174
|
-
DocProject/Help/*.HxT
|
|
175
|
-
DocProject/Help/*.HxC
|
|
176
|
-
DocProject/Help/*.hhc
|
|
177
|
-
DocProject/Help/*.hhk
|
|
178
|
-
DocProject/Help/*.hhp
|
|
179
|
-
DocProject/Help/Html2
|
|
180
|
-
DocProject/Help/html
|
|
181
|
-
|
|
182
|
-
# Click-Once directory
|
|
183
|
-
publish/
|
|
184
|
-
|
|
185
|
-
# Publish Web Output
|
|
186
|
-
*.[Pp]ublish.xml
|
|
187
|
-
*.azurePubxml
|
|
188
|
-
# Note: Comment the next line if you want to checkin your web deploy settings,
|
|
189
|
-
# but database connection strings (with potential passwords) will be unencrypted
|
|
190
|
-
*.pubxml
|
|
191
|
-
*.publishproj
|
|
192
|
-
|
|
193
|
-
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
|
194
|
-
# checkin your Azure Web App publish settings, but sensitive information contained
|
|
195
|
-
# in these scripts will be unencrypted
|
|
196
|
-
PublishScripts/
|
|
197
|
-
|
|
198
|
-
# NuGet Packages
|
|
199
|
-
*.nupkg
|
|
200
|
-
# NuGet Symbol Packages
|
|
201
|
-
*.snupkg
|
|
202
|
-
# The packages folder can be ignored because of Package Restore
|
|
203
|
-
**/[Pp]ackages/*
|
|
204
|
-
# except build/, which is used as an MSBuild target.
|
|
205
|
-
!**/[Pp]ackages/build/
|
|
206
|
-
# Uncomment if necessary however generally it will be regenerated when needed
|
|
207
|
-
#!**/[Pp]ackages/repositories.config
|
|
208
|
-
# NuGet v3's project.json files produces more ignorable files
|
|
209
|
-
*.nuget.props
|
|
210
|
-
*.nuget.targets
|
|
211
|
-
|
|
212
|
-
# Microsoft Azure Build Output
|
|
213
|
-
csx/
|
|
214
|
-
*.build.csdef
|
|
215
|
-
|
|
216
|
-
# Microsoft Azure Emulator
|
|
217
|
-
ecf/
|
|
218
|
-
rcf/
|
|
219
|
-
|
|
220
|
-
# Windows Store app package directories and files
|
|
221
|
-
AppPackages/
|
|
222
|
-
BundleArtifacts/
|
|
223
|
-
Package.StoreAssociation.xml
|
|
224
|
-
_pkginfo.txt
|
|
225
|
-
*.appx
|
|
226
|
-
*.appxbundle
|
|
227
|
-
*.appxupload
|
|
228
|
-
|
|
229
|
-
# Visual Studio cache files
|
|
230
|
-
# files ending in .cache can be ignored
|
|
231
|
-
*.[Cc]ache
|
|
232
|
-
# but keep track of directories ending in .cache
|
|
233
|
-
!?*.[Cc]ache/
|
|
234
|
-
|
|
235
|
-
# Others
|
|
236
|
-
ClientBin/
|
|
237
|
-
~$*
|
|
238
|
-
*~
|
|
239
|
-
*.dbmdl
|
|
240
|
-
*.dbproj.schemaview
|
|
241
|
-
*.jfm
|
|
242
|
-
*.pfx
|
|
243
|
-
*.publishsettings
|
|
244
|
-
orleans.codegen.cs
|
|
245
|
-
|
|
246
|
-
# Including strong name files can present a security risk
|
|
247
|
-
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
|
248
|
-
#*.snk
|
|
249
|
-
|
|
250
|
-
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
|
251
|
-
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
|
252
|
-
#bower_components/
|
|
253
|
-
|
|
254
|
-
# RIA/Silverlight projects
|
|
255
|
-
Generated_Code/
|
|
256
|
-
|
|
257
|
-
# Backup & report files from converting an old project file
|
|
258
|
-
# to a newer Visual Studio version. Backup files are not needed,
|
|
259
|
-
# because we have git ;-)
|
|
260
|
-
_UpgradeReport_Files/
|
|
261
|
-
Backup*/
|
|
262
|
-
UpgradeLog*.XML
|
|
263
|
-
UpgradeLog*.htm
|
|
264
|
-
ServiceFabricBackup/
|
|
265
|
-
*.rptproj.bak
|
|
266
|
-
|
|
267
|
-
# SQL Server files
|
|
268
|
-
*.mdf
|
|
269
|
-
*.ldf
|
|
270
|
-
*.ndf
|
|
271
|
-
|
|
272
|
-
# Business Intelligence projects
|
|
273
|
-
*.rdl.data
|
|
274
|
-
*.bim.layout
|
|
275
|
-
*.bim_*.settings
|
|
276
|
-
*.rptproj.rsuser
|
|
277
|
-
*- [Bb]ackup.rdl
|
|
278
|
-
*- [Bb]ackup ([0-9]).rdl
|
|
279
|
-
*- [Bb]ackup ([0-9][0-9]).rdl
|
|
280
|
-
|
|
281
|
-
# Microsoft Fakes
|
|
282
|
-
FakesAssemblies/
|
|
283
|
-
|
|
284
|
-
# GhostDoc plugin setting file
|
|
285
|
-
*.GhostDoc.xml
|
|
286
|
-
|
|
287
|
-
# Node.js Tools for Visual Studio
|
|
288
|
-
.ntvs_analysis.dat
|
|
289
|
-
node_modules/
|
|
290
|
-
|
|
291
|
-
# Visual Studio 6 build log
|
|
292
|
-
*.plg
|
|
293
|
-
|
|
294
|
-
# Visual Studio 6 workspace options file
|
|
295
|
-
*.opt
|
|
296
|
-
|
|
297
|
-
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
|
298
|
-
*.vbw
|
|
299
|
-
|
|
300
|
-
# Visual Studio LightSwitch build output
|
|
301
|
-
**/*.HTMLClient/GeneratedArtifacts
|
|
302
|
-
**/*.DesktopClient/GeneratedArtifacts
|
|
303
|
-
**/*.DesktopClient/ModelManifest.xml
|
|
304
|
-
**/*.Server/GeneratedArtifacts
|
|
305
|
-
**/*.Server/ModelManifest.xml
|
|
306
|
-
_Pvt_Extensions
|
|
307
|
-
|
|
308
|
-
# Paket dependency manager
|
|
309
|
-
.paket/paket.exe
|
|
310
|
-
paket-files/
|
|
311
|
-
|
|
312
|
-
# FAKE - F# Make
|
|
313
|
-
.fake/
|
|
314
|
-
|
|
315
|
-
# CodeRush personal settings
|
|
316
|
-
.cr/personal
|
|
317
|
-
|
|
318
|
-
# Python Tools for Visual Studio (PTVS)
|
|
319
|
-
__pycache__/
|
|
320
|
-
*.pyc
|
|
321
|
-
|
|
322
|
-
# Cake - Uncomment if you are using it
|
|
323
|
-
# tools/**
|
|
324
|
-
# !tools/packages.config
|
|
325
|
-
|
|
326
|
-
# Tabs Studio
|
|
327
|
-
*.tss
|
|
328
|
-
|
|
329
|
-
# Telerik's JustMock configuration file
|
|
330
|
-
*.jmconfig
|
|
331
|
-
|
|
332
|
-
# BizTalk build output
|
|
333
|
-
*.btp.cs
|
|
334
|
-
*.btm.cs
|
|
335
|
-
*.odx.cs
|
|
336
|
-
*.xsd.cs
|
|
337
|
-
|
|
338
|
-
# OpenCover UI analysis results
|
|
339
|
-
OpenCover/
|
|
340
|
-
|
|
341
|
-
# Azure Stream Analytics local run output
|
|
342
|
-
ASALocalRun/
|
|
343
|
-
|
|
344
|
-
# MSBuild Binary and Structured Log
|
|
345
|
-
*.binlog
|
|
346
|
-
|
|
347
|
-
# NVidia Nsight GPU debugger configuration file
|
|
348
|
-
*.nvuser
|
|
349
|
-
|
|
350
|
-
# MFractors (Xamarin productivity tool) working folder
|
|
351
|
-
.mfractor/
|
|
352
|
-
|
|
353
|
-
# Local History for Visual Studio
|
|
354
|
-
.localhistory/
|
|
355
|
-
|
|
356
|
-
# BeatPulse healthcheck temp database
|
|
357
|
-
healthchecksdb
|
|
358
|
-
|
|
359
|
-
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
|
360
|
-
MigrationBackup/
|
|
361
|
-
|
|
362
|
-
# Ionide (cross platform F# VS Code tools) working folder
|
|
363
|
-
.ionide/
|
|
364
|
-
|
|
365
|
-
# Fody - auto-generated XML schema
|
|
366
|
-
FodyWeavers.xsd
|
|
367
|
-
internal_dependencies/copypress-thematical-pp-common-libraries-1.0.0.tgz
|
|
368
|
-
plugins/rsa
|
|
369
|
-
check_24h.csv
|
|
370
|
-
check_2025-02-11.csv
|
|
371
|
-
check_2025-02-12.csv
|
|
372
|
-
check_start.csv
|
|
373
|
-
check_url_constrained.csv
|
|
374
|
-
check_2025-02-13_2.csv
|
|
375
|
-
check_2025-02-13.csv
|
|
376
|
-
check_2025-02-14.csv
|
|
377
|
-
check_2025-02-18.csv
|
|
378
|
-
check_2025-02-19.csv
|
|
379
|
-
check_2025-02-24_big.csv
|
|
380
|
-
check_2025-02-24.csv
|
|
381
|
-
check_2025-02-27_rock.csv
|
|
382
|
-
hub_spoke_test.txt
|
|
383
|
-
hub_spoke_test_spokes.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function detect_malicious_keys(input: any): any;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function detect_malicious_keys(input) {
|
|
2
|
-
if (Array.isArray(input)) {
|
|
3
|
-
input.map(detect_malicious_keys);
|
|
4
|
-
}
|
|
5
|
-
if (typeof input === 'object' && input !== null) {
|
|
6
|
-
for (let [key, value] of Object.entries(input)) {
|
|
7
|
-
if (key.trim().startsWith('$')) {
|
|
8
|
-
throw new Error(`Invalid key detected: ${key}`);
|
|
9
|
-
}
|
|
10
|
-
detect_malicious_keys(value);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=mongoose_any_paths.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongoose_any_paths.js","sourceRoot":"","sources":["../../src/utils/mongoose_any_paths.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,KAAU;IAC5C,IAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC,CAAC;QACrB,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACrC,CAAC;IAED,IAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAC,CAAC;QAC5C,KAAI,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC,CAAC;YAC3C,IAAG,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBAAC,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,EAAE,CAAC,CAAA;YAAA,CAAC;YACjF,qBAAqB,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;IACL,CAAC;AACL,CAAC"}
|