File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
src/validators/contentful Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2626 ],
2727 "func-names" : [0 ],
2828 "@typescript-eslint/no-unused-vars" : " warn" ,
29+ "@typescript-eslint/no-var-requires" : " off" ,
2930 "no-prototype-builtins" : " off" ,
3031 "@typescript-eslint/no-explicit-any" : " off" ,
3132 "no-constant-condition" : " off"
Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ WORKDIR /app
88COPY package*.json ./
99
1010# Install application dependencies
11- RUN npm install
11+ RUN npm install --force
1212
1313# Copy the application code to the container
1414COPY . .
1515
1616# Expose the port your app will run on
17- EXPOSE 3000
17+ EXPOSE 4002
1818
1919# Define the command to run your application
20- CMD ["node" , "index.js" ]
20+ CMD ["npm" , "start" ]
21+
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function contentfulValidator(data: string): boolean {
1414 jsonData = JSON . parse ( data ) ;
1515
1616 //iterate through jsonconfig to check to check if data is valid
17- return Object . entries ( jsonConfig ) . every ( ( [ key , prop ] ) => {
17+ return Object . values ( jsonConfig ) . every ( ( prop : any ) => {
1818 // Check if the current property exists in the json data.
1919 if ( jsonData ?. hasOwnProperty ( prop ?. name ) ) {
2020 return true ;
You can’t perform that action at this time.
0 commit comments