@centreon/js-config 23.10.1-MON-20421-docker-cache.3 → 23.10.1-MON-20421-docker-cache.5

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.
@@ -218,24 +218,6 @@ Cypress.Commands.add(
218
218
  return cy
219
219
  .exec('docker image list --format "{{.Repository}}:{{.Tag}}"')
220
220
  .then(({ stdout }) => {
221
- const found = image.match(/([a-z0-9._-]+):([a-z0-9._-]+)/);
222
- if (
223
- found &&
224
- stdout.match(
225
- new RegExp(
226
- `^${found[1].replace(
227
- /[-[\]{}()*+?.,\\^$|#\s]/g,
228
- '\\$&'
229
- )}:${found[2].replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')}`,
230
- 'm'
231
- )
232
- )
233
- ) {
234
- cy.log(`Local docker image found : ${found[1]}:${found[2]}`);
235
-
236
- return cy.wrap(`${found[1]}:${found[2]}`);
237
- }
238
-
239
221
  if (
240
222
  stdout.match(
241
223
  new RegExp(
@@ -244,12 +226,13 @@ Cypress.Commands.add(
244
226
  )
245
227
  )
246
228
  ) {
247
- cy.log(`Pulled remote docker image found : ${image}`);
229
+ cy.log(`Local docker image found : ${image}`);
248
230
 
249
231
  return cy.wrap(image);
250
232
  }
251
233
 
252
234
  cy.log(`Pulling remote docker image : ${image}`);
235
+ throw new Error(`Pulling remote docker image : ${image}`);
253
236
 
254
237
  return cy.exec(`docker pull ${image}`).then(() => cy.wrap(image));
255
238
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@centreon/js-config",
3
3
  "description": "Centreon Frontend shared build configuration",
4
- "version": "23.10.1-MON-20421-docker-cache.3",
4
+ "version": "23.10.1-MON-20421-docker-cache.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"