Commit 3440fe10 by jaymehta

img upload

1 parent 014fb18d
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"@strapi/provider-email-nodemailer": "^4.3.8", "@strapi/provider-email-nodemailer": "^4.3.8",
"@strapi/provider-upload-aws-s3": "^4.3.9", "@strapi/provider-upload-aws-s3": "^4.3.9",
"@strapi/strapi": "4.3.6", "@strapi/strapi": "4.3.6",
"@strapi/utils": "^4.24.3",
"better-sqlite3": "7.4.6", "better-sqlite3": "7.4.6",
"csv-parse": "^5.5.5", "csv-parse": "^5.5.5",
"mysql": "^2.18.1", "mysql": "^2.18.1",
...@@ -2657,6 +2658,22 @@ ...@@ -2657,6 +2658,22 @@
"@strapi/strapi": "^4.3.4" "@strapi/strapi": "^4.3.4"
} }
}, },
"node_modules/@strapi/admin/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/admin/node_modules/cross-spawn": { "node_modules/@strapi/admin/node_modules/cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
...@@ -2825,6 +2842,23 @@ ...@@ -2825,6 +2842,23 @@
"which": "bin/which" "which": "bin/which"
} }
}, },
"node_modules/@strapi/admin/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/babel-plugin-switch-ee-ce": { "node_modules/@strapi/babel-plugin-switch-ee-ce": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/babel-plugin-switch-ee-ce/-/babel-plugin-switch-ee-ce-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/babel-plugin-switch-ee-ce/-/babel-plugin-switch-ee-ce-4.3.6.tgz",
...@@ -3040,6 +3074,39 @@ ...@@ -3040,6 +3074,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/generators/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/generators/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/helper-plugin": { "node_modules/@strapi/helper-plugin": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/helper-plugin/-/helper-plugin-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/helper-plugin/-/helper-plugin-4.3.6.tgz",
...@@ -3112,6 +3179,39 @@ ...@@ -3112,6 +3179,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/plugin-content-manager/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/plugin-content-manager/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/plugin-content-type-builder": { "node_modules/@strapi/plugin-content-type-builder": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/plugin-content-type-builder/-/plugin-content-type-builder-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/plugin-content-type-builder/-/plugin-content-type-builder-4.3.6.tgz",
...@@ -3139,6 +3239,39 @@ ...@@ -3139,6 +3239,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/plugin-content-type-builder/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/plugin-content-type-builder/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/plugin-email": { "node_modules/@strapi/plugin-email": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/plugin-email/-/plugin-email-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/plugin-email/-/plugin-email-4.3.6.tgz",
...@@ -3153,6 +3286,39 @@ ...@@ -3153,6 +3286,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/plugin-email/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/plugin-email/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/plugin-i18n": { "node_modules/@strapi/plugin-i18n": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/plugin-i18n/-/plugin-i18n-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/plugin-i18n/-/plugin-i18n-4.3.6.tgz",
...@@ -3166,6 +3332,39 @@ ...@@ -3166,6 +3332,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/plugin-i18n/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/plugin-i18n/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/plugin-upload": { "node_modules/@strapi/plugin-upload": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/plugin-upload/-/plugin-upload-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/plugin-upload/-/plugin-upload-4.3.6.tgz",
...@@ -3197,6 +3396,22 @@ ...@@ -3197,6 +3396,22 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/plugin-upload/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/plugin-upload/node_modules/immer": { "node_modules/@strapi/plugin-upload/node_modules/immer": {
"version": "9.0.15", "version": "9.0.15",
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.15.tgz", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.15.tgz",
...@@ -3206,6 +3421,23 @@ ...@@ -3206,6 +3421,23 @@
"url": "https://opencollective.com/immer" "url": "https://opencollective.com/immer"
} }
}, },
"node_modules/@strapi/plugin-upload/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/plugin-users-permissions": { "node_modules/@strapi/plugin-users-permissions": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/plugin-users-permissions/-/plugin-users-permissions-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/plugin-users-permissions/-/plugin-users-permissions-4.3.6.tgz",
...@@ -3234,6 +3466,39 @@ ...@@ -3234,6 +3466,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/plugin-users-permissions/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/plugin-users-permissions/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/provider-email-nodemailer": { "node_modules/@strapi/provider-email-nodemailer": {
"version": "4.3.8", "version": "4.3.8",
"resolved": "https://registry.npmjs.org/@strapi/provider-email-nodemailer/-/provider-email-nodemailer-4.3.8.tgz", "resolved": "https://registry.npmjs.org/@strapi/provider-email-nodemailer/-/provider-email-nodemailer-4.3.8.tgz",
...@@ -3260,6 +3525,39 @@ ...@@ -3260,6 +3525,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/provider-email-sendmail/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/provider-email-sendmail/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/provider-upload-aws-s3": { "node_modules/@strapi/provider-upload-aws-s3": {
"version": "4.3.9", "version": "4.3.9",
"resolved": "https://registry.npmjs.org/@strapi/provider-upload-aws-s3/-/provider-upload-aws-s3-4.3.9.tgz", "resolved": "https://registry.npmjs.org/@strapi/provider-upload-aws-s3/-/provider-upload-aws-s3-4.3.9.tgz",
...@@ -3286,6 +3584,39 @@ ...@@ -3286,6 +3584,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/provider-upload-local/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/provider-upload-local/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/strapi": { "node_modules/@strapi/strapi": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/strapi/-/strapi-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/strapi/-/strapi-4.3.6.tgz",
...@@ -3353,6 +3684,39 @@ ...@@ -3353,6 +3684,39 @@
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
}, },
"node_modules/@strapi/strapi/node_modules/@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
},
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/strapi/node_modules/yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@strapi/typescript-utils": { "node_modules/@strapi/typescript-utils": {
"version": "4.3.6", "version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/typescript-utils/-/typescript-utils-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/typescript-utils/-/typescript-utils-4.3.6.tgz",
...@@ -3383,22 +3747,54 @@ ...@@ -3383,22 +3747,54 @@
"node": ">=12" "node": ">=12"
} }
}, },
"node_modules/@strapi/utils": { "node_modules/@strapi/utils": {
"version": "4.3.6", "version": "4.24.3",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.24.3.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==", "integrity": "sha512-yc6F5KOwfMVx68jiD3kcnJMd6qA8rF1iY3o9HRei5Os74ekgylJF++mdZMOFyDgdDUANylq6GVlI+KUTKapoQw==",
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.30.0",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"p-map": "4.0.0",
"yup": "0.32.9"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
}
},
"node_modules/@strapi/utils/node_modules/@babel/runtime": {
"version": "7.24.6",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.6.tgz",
"integrity": "sha512-Ja18XcETdEl5mzzACGd+DKgaGJzPTCow7EglgwTmHdwokzDFYh/MHua6lU6DV/hjF2IaOJ4oX2nqnjG7RElKOw==",
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@strapi/utils/node_modules/date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
"dependencies": { "dependencies": {
"@sindresorhus/slugify": "1.1.0", "@babel/runtime": "^7.21.0"
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}, },
"engines": { "engines": {
"node": ">=14.19.1 <=16.x.x", "node": ">=0.11"
"npm": ">=6.0.0" },
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/date-fns"
} }
}, },
"node_modules/@strapi/utils/node_modules/regenerator-runtime": {
"version": "0.14.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"node_modules/@strapi/utils/node_modules/yup": { "node_modules/@strapi/utils/node_modules/yup": {
"version": "0.32.9", "version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz", "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
...@@ -16745,23 +17141,6 @@ ...@@ -16745,23 +17141,6 @@
"funding": { "funding": {
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
},
"node_modules/yup": {
"version": "0.32.11",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz",
"integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@types/lodash": "^4.14.175",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
},
"engines": {
"node": ">=10"
}
} }
}, },
"dependencies": { "dependencies": {
...@@ -18652,6 +19031,18 @@ ...@@ -18652,6 +19031,18 @@
"yup": "^0.32.9" "yup": "^0.32.9"
}, },
"dependencies": { "dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"cross-spawn": { "cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
...@@ -18783,6 +19174,20 @@ ...@@ -18783,6 +19174,20 @@
"requires": { "requires": {
"isexe": "^2.0.0" "isexe": "^2.0.0"
} }
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
} }
} }
}, },
...@@ -18950,6 +19355,34 @@ ...@@ -18950,6 +19355,34 @@
"node-plop": "0.26.3", "node-plop": "0.26.3",
"plop": "2.7.6", "plop": "2.7.6",
"pluralize": "8.0.0" "pluralize": "8.0.0"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/helper-plugin": { "@strapi/helper-plugin": {
...@@ -19006,6 +19439,34 @@ ...@@ -19006,6 +19439,34 @@
"@sindresorhus/slugify": "1.1.0", "@sindresorhus/slugify": "1.1.0",
"@strapi/utils": "4.3.6", "@strapi/utils": "4.3.6",
"lodash": "4.17.21" "lodash": "4.17.21"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/plugin-content-type-builder": { "@strapi/plugin-content-type-builder": {
...@@ -19029,6 +19490,34 @@ ...@@ -19029,6 +19490,34 @@
"redux": "^4.0.1", "redux": "^4.0.1",
"reselect": "^4.0.0", "reselect": "^4.0.0",
"yup": "^0.32.9" "yup": "^0.32.9"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/plugin-email": { "@strapi/plugin-email": {
...@@ -19039,6 +19528,34 @@ ...@@ -19039,6 +19528,34 @@
"@strapi/provider-email-sendmail": "4.3.6", "@strapi/provider-email-sendmail": "4.3.6",
"@strapi/utils": "4.3.6", "@strapi/utils": "4.3.6",
"lodash": "4.17.21" "lodash": "4.17.21"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/plugin-i18n": { "@strapi/plugin-i18n": {
...@@ -19048,6 +19565,34 @@ ...@@ -19048,6 +19565,34 @@
"requires": { "requires": {
"@strapi/utils": "4.3.6", "@strapi/utils": "4.3.6",
"lodash": "4.17.21" "lodash": "4.17.21"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/plugin-upload": { "@strapi/plugin-upload": {
...@@ -19077,10 +19622,36 @@ ...@@ -19077,10 +19622,36 @@
"sharp": "0.30.7" "sharp": "0.30.7"
}, },
"dependencies": { "dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"immer": { "immer": {
"version": "9.0.15", "version": "9.0.15",
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.15.tgz", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.15.tgz",
"integrity": "sha512-2eB/sswms9AEUSkOm4SbV5Y7Vmt/bKRwByd52jfLkW4OLYeaTP3EEiJ9agqU0O/tq6Dk62Zfj+TJSqfm1rLVGQ==" "integrity": "sha512-2eB/sswms9AEUSkOm4SbV5Y7Vmt/bKRwByd52jfLkW4OLYeaTP3EEiJ9agqU0O/tq6Dk62Zfj+TJSqfm1rLVGQ=="
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
} }
} }
}, },
...@@ -19106,6 +19677,34 @@ ...@@ -19106,6 +19677,34 @@
"react-router-dom": "5.2.0", "react-router-dom": "5.2.0",
"request": "^2.83.0", "request": "^2.83.0",
"url-join": "4.0.1" "url-join": "4.0.1"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/provider-email-nodemailer": { "@strapi/provider-email-nodemailer": {
...@@ -19124,6 +19723,34 @@ ...@@ -19124,6 +19723,34 @@
"requires": { "requires": {
"@strapi/utils": "4.3.6", "@strapi/utils": "4.3.6",
"sendmail": "^1.6.1" "sendmail": "^1.6.1"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/provider-upload-aws-s3": { "@strapi/provider-upload-aws-s3": {
...@@ -19142,6 +19769,34 @@ ...@@ -19142,6 +19769,34 @@
"requires": { "requires": {
"@strapi/utils": "4.3.6", "@strapi/utils": "4.3.6",
"fs-extra": "10.0.0" "fs-extra": "10.0.0"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/strapi": { "@strapi/strapi": {
...@@ -19201,6 +19856,34 @@ ...@@ -19201,6 +19856,34 @@
"semver": "7.3.7", "semver": "7.3.7",
"statuses": "2.0.1", "statuses": "2.0.1",
"uuid": "^8.3.2" "uuid": "^8.3.2"
},
"dependencies": {
"@strapi/utils": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==",
"requires": {
"@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2",
"http-errors": "1.8.1",
"lodash": "4.17.21",
"yup": "0.32.9"
}
},
"yup": {
"version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
"integrity": "sha512-Ci1qN+i2H0XpY7syDQ0k5zKQ/DoxO0LzPg8PAR/X4Mpj6DqaeCoIYEEjDJwhArh3Fa7GWbQQVDZKeXYlSH4JMg==",
"requires": {
"@babel/runtime": "^7.10.5",
"@types/lodash": "^4.14.165",
"lodash": "^4.17.20",
"lodash-es": "^4.17.15",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
}
} }
}, },
"@strapi/typescript-utils": { "@strapi/typescript-utils": {
...@@ -19229,17 +19912,39 @@ ...@@ -19229,17 +19912,39 @@
} }
}, },
"@strapi/utils": { "@strapi/utils": {
"version": "4.3.6", "version": "4.24.3",
"resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.3.6.tgz", "resolved": "https://registry.npmjs.org/@strapi/utils/-/utils-4.24.3.tgz",
"integrity": "sha512-ke9VBLm2E6nasYtr/Z/xh24G+bx1FNM1pHNzsGmoythjPxD8JzcRxWWUNAVWPJybO7zq6MK0eQDneHkavpt3+g==", "integrity": "sha512-yc6F5KOwfMVx68jiD3kcnJMd6qA8rF1iY3o9HRei5Os74ekgylJF++mdZMOFyDgdDUANylq6GVlI+KUTKapoQw==",
"requires": { "requires": {
"@sindresorhus/slugify": "1.1.0", "@sindresorhus/slugify": "1.1.0",
"date-fns": "2.29.2", "date-fns": "2.30.0",
"http-errors": "1.8.1", "http-errors": "1.8.1",
"lodash": "4.17.21", "lodash": "4.17.21",
"p-map": "4.0.0",
"yup": "0.32.9" "yup": "0.32.9"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": {
"version": "7.24.6",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.6.tgz",
"integrity": "sha512-Ja18XcETdEl5mzzACGd+DKgaGJzPTCow7EglgwTmHdwokzDFYh/MHua6lU6DV/hjF2IaOJ4oX2nqnjG7RElKOw==",
"requires": {
"regenerator-runtime": "^0.14.0"
}
},
"date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
"requires": {
"@babel/runtime": "^7.21.0"
}
},
"regenerator-runtime": {
"version": "0.14.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"yup": { "yup": {
"version": "0.32.9", "version": "0.32.9",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz", "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.9.tgz",
...@@ -29312,20 +30017,6 @@ ...@@ -29312,20 +30017,6 @@
"version": "0.1.0", "version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="
},
"yup": {
"version": "0.32.11",
"resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz",
"integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==",
"requires": {
"@babel/runtime": "^7.15.4",
"@types/lodash": "^4.14.175",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"nanoclone": "^0.2.1",
"property-expr": "^2.0.4",
"toposort": "^2.0.2"
}
} }
} }
} }
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"@strapi/provider-email-nodemailer": "^4.3.8", "@strapi/provider-email-nodemailer": "^4.3.8",
"@strapi/provider-upload-aws-s3": "^4.3.9", "@strapi/provider-upload-aws-s3": "^4.3.9",
"@strapi/strapi": "4.3.6", "@strapi/strapi": "4.3.6",
"@strapi/utils": "^4.24.3",
"better-sqlite3": "7.4.6", "better-sqlite3": "7.4.6",
"csv-parse": "^5.5.5", "csv-parse": "^5.5.5",
"mysql": "^2.18.1", "mysql": "^2.18.1",
......
...@@ -56,6 +56,17 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -56,6 +56,17 @@ module.exports = createCoreController("api::experience.experience", () => ({
"Activity with the same name already exists, please rename the activity." "Activity with the same name already exists, please rename the activity."
); );
} }
let finalImageArray = [];
for (
let index = 0;
index < ctx.request.body.data.imagesComponent.length;
index++
) {
const element = ctx.request.body.data.imagesComponent[index];
finalImageArray = [...finalImageArray, { image: element }];
}
ctx.request.body.data.imagesComponent;
// Create Activity // Create Activity
const activity = await strapi.entityService.create( const activity = await strapi.entityService.create(
"api::experience.experience", "api::experience.experience",
...@@ -92,7 +103,7 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -92,7 +103,7 @@ module.exports = createCoreController("api::experience.experience", () => ({
contactPersonForBooking: contactPersonForBooking:
ctx.request.body.data.contactPersonForBooking, ctx.request.body.data.contactPersonForBooking,
approved: ctx.request.body.data.approved, approved: ctx.request.body.data.approved,
imagesComponent: ctx.request.body.data.imagesArrayComponent, imagesComponent: finalImageArray,
...ctx.request.body.data.daysBoolean, ...ctx.request.body.data.daysBoolean,
}, },
} }
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"info": { "info": {
"singularName": "test", "singularName": "test",
"pluralName": "tests", "pluralName": "tests",
"displayName": "test" "displayName": "test",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
...@@ -15,14 +16,21 @@ ...@@ -15,14 +16,21 @@
"type": "string" "type": "string"
}, },
"images": { "images": {
"type": "media",
"multiple": true,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images", "images",
"files", "files",
"videos", "videos",
"audios" "audios"
], ]
"type": "media", },
"multiple": true "imgComponent": {
"displayName": "imgComponent",
"type": "component",
"repeatable": true,
"component": "img-component.img-component"
} }
} }
} }
'use strict'; "use strict";
/** /**
* test controller * test controller
*/ */
const { createCoreController } = require('@strapi/strapi').factories; const { createCoreController } = require("@strapi/strapi").factories;
const { parseMultipartData, sanitizeEntity } = require("@strapi/utils");
module.exports = createCoreController('api::test.test'); module.exports = createCoreController("api::test.test", () => ({
async create(ctx) {
let entity;
if (ctx.request.is("multipart/form-data")) {
const { body: data, files } = ctx.request;
console.log("Data:", data);
console.log("Files:", files);
// Ensure imgComponent structure
if (data.imgComponent && Array.isArray(data.imgComponent)) {
data.imgComponent = data.imgComponent.map((item, index) => ({
...item,
image: files[`imgComponent[${index}].image`], // Ensure correct structure
}));
}
console.log("final", data.data, files);
try {
entity = await strapi.entityService.create("api::test.test", {
data,
files,
});
console.log("entity, ", entity);
return ctx.send({ payload: entity, success: true });
} catch (error) {
console.error(error);
ctx.throw(500, error.message);
}
} else {
ctx.throw(400, "Request must be multipart/form-data");
}
},
}));
...@@ -7,8 +7,15 @@ ...@@ -7,8 +7,15 @@
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"imageUrl": { "image": {
"type": "string" "allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
} }
} }
} }
{
"collectionName": "components_img_component_img_components",
"info": {
"displayName": "imgComponent"
},
"options": {},
"attributes": {
"image": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
}
}
}
This diff could not be displayed because it is too large.
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!