forms-angular 0.12.0-beta.322 → 0.12.0-beta.324
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.
|
@@ -3647,6 +3647,7 @@ var fng;
|
|
|
3647
3647
|
genDisableableAncestorStr: function genDisableableAncestorStr(processedAttrs) {
|
|
3648
3648
|
return FormMarkupHelperService.genDisableableAncestorStr(processedAttrs.info.id);
|
|
3649
3649
|
},
|
|
3650
|
+
// Used by fng-ui-select
|
|
3650
3651
|
findIdInSchemaAndFlagNeedX: function findIdInSchemaAndFlagNeedX(schema, id) {
|
|
3651
3652
|
// Find the entry in the schema for id and add a needsX property so string arrays are properly handled
|
|
3652
3653
|
var foundIt = false;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -706,7 +706,7 @@ declare module fng {
|
|
|
706
706
|
) => string;
|
|
707
707
|
handlePseudos: (scope: fng.IFormScope, str: string) => string;
|
|
708
708
|
genDisableableAncestorStr: (processedAttrs: IProcessedAttrs) => string;
|
|
709
|
-
findIdInSchemaAndFlagNeedX: (
|
|
709
|
+
findIdInSchemaAndFlagNeedX: (schema: any, id: any) => void;
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
interface ISecurityVisibility {
|
package/dist/server/data_form.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormsAngular = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
1
|
+
import { Types } from "mongoose";
|
|
5
2
|
// This part of forms-angular borrows from https://github.com/Alexandre-Strzelewicz/angular-bridge
|
|
6
3
|
// (now https://github.com/Unitech/angular-bridge
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import _ from "lodash";
|
|
5
|
+
import util from "util";
|
|
6
|
+
import extend from "node.extend";
|
|
7
|
+
import async from "async";
|
|
11
8
|
let debug = false;
|
|
12
9
|
function logTheAPICalls(req, res, next) {
|
|
13
10
|
void res;
|
|
@@ -50,7 +47,7 @@ function processArgs(options, array) {
|
|
|
50
47
|
array[0] = options.urlPrefix + array[0];
|
|
51
48
|
return array;
|
|
52
49
|
}
|
|
53
|
-
class FormsAngular {
|
|
50
|
+
export class FormsAngular {
|
|
54
51
|
constructor(mongoose, app, options) {
|
|
55
52
|
this.mongoose = mongoose;
|
|
56
53
|
this.app = app;
|
|
@@ -1034,7 +1031,7 @@ class FormsAngular {
|
|
|
1034
1031
|
else if (prop !== "$regex") {
|
|
1035
1032
|
const objectIdTest = /^([0-9a-fA-F]{24})$/.exec(obj[prop]);
|
|
1036
1033
|
if (objectIdTest) {
|
|
1037
|
-
obj[prop] = new
|
|
1034
|
+
obj[prop] = new Types.ObjectId(objectIdTest[1]);
|
|
1038
1035
|
}
|
|
1039
1036
|
}
|
|
1040
1037
|
}
|
|
@@ -2231,7 +2228,6 @@ class FormsAngular {
|
|
|
2231
2228
|
return new Date(parseInt(timestamp, 16) * 1000);
|
|
2232
2229
|
}
|
|
2233
2230
|
}
|
|
2234
|
-
exports.FormsAngular = FormsAngular;
|
|
2235
2231
|
class ForeignKeyError extends global.Error {
|
|
2236
2232
|
constructor(resourceName, foreignKeys) {
|
|
2237
2233
|
super(`Cannot delete this ${resourceName}, as it is: ${foreignKeys.map((d) => ` the ${d.key} on ${d.resourceName} ${d.id}`).join("; ")}`);
|
|
@@ -2239,3 +2235,4 @@ class ForeignKeyError extends global.Error {
|
|
|
2239
2235
|
this.stack = new global.Error("").stack;
|
|
2240
2236
|
}
|
|
2241
2237
|
}
|
|
2238
|
+
export default FormsAngular;
|
package/package.json
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
},
|
|
7
7
|
"description": "A form builder that sits on top of Angular.js, Twitter Bootstrap, jQuery UI, Angular-UI, Express and Mongoose. Opinionated or what?",
|
|
8
8
|
"homepage": "http://forms-angular.org",
|
|
9
|
-
"version": "0.12.0-beta.
|
|
9
|
+
"version": "0.12.0-beta.324",
|
|
10
10
|
"packageManager": "npm@10.2.4",
|
|
11
|
+
"type": "module",
|
|
11
12
|
"engines": {
|
|
12
13
|
"node": ">=8.x",
|
|
13
14
|
"npm": ">=5.x"
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"build": "If this is not a production install we need bootstrap less files for building, and use bower to load them. Couldn't figure out how to load two versions of same library with npm - PRs welcome."
|
|
17
18
|
},
|
|
18
19
|
"scripts": {
|
|
19
|
-
"test": "gulp test",
|
|
20
|
+
"test": "gulp --gulpfile /home/mark/Projects/forms-angular/forms-angular/gulpfile.cjs test",
|
|
20
21
|
"tidy": "find . -name '*.js' -not -path '**/node_modules/**' -and -not -path '**/website/**' -and -not -path '**/test/**' -and -not -path '**/models/**' -and -not -name 'gulpfile.js' -and -not -name 'index.js' -and -not -name 'Gruntfile.js' -and -not -name '*.conf.js' -delete && find . -name '*.map' -not -path '**/node_modules/**' -delete",
|
|
21
22
|
"build": "if [ -d 'node_modules/bower' ]; then npx bower install --config.directory=node_modules --production jquery@2.0.3 bootstrap-2-3-2=git://github.com/twbs/bootstrap.git#v2.3.2 bootstrap-3-4-0=git://github.com/twbs/bootstrap.git#v3.4.0; fi && gulp build",
|
|
22
23
|
"reset": "cd website && rm -rf node_modules && npm install && cd .. && rm -rf node_modules && npm install && npm run build"
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"https://github.com/advisories/GHSA-4w4v-5hc9-xrr2": {
|
|
82
83
|
"description": "angular vulnerable to super-linear runtime due to backtracking",
|
|
83
84
|
"mitigation": "We do not make any use of ng-srcset",
|
|
84
|
-
"nextReview": "2026-
|
|
85
|
+
"nextReview": "2026-04-01T00:00:00Z",
|
|
85
86
|
"reviewBy": "Search plait and forms-angular looking for srcset"
|
|
86
87
|
}
|
|
87
88
|
},
|
|
@@ -215,4 +216,4 @@
|
|
|
215
216
|
"typedarray": "npm:@socketregistry/typedarray@^1"
|
|
216
217
|
},
|
|
217
218
|
"license": "MIT"
|
|
218
|
-
}
|
|
219
|
+
}
|