@centreon/js-config 23.10.1-MON-20421-docker-cache.4 → 23.10.1-MON-20421-docker-cache.6

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,25 +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
- throw new Error(`Local docker image found : ${found[1]}:${found[2]}`);
236
-
237
- return cy.wrap(`${found[1]}:${found[2]}`);
238
- }
239
-
240
221
  if (
241
222
  stdout.match(
242
223
  new RegExp(
@@ -245,14 +226,12 @@ Cypress.Commands.add(
245
226
  )
246
227
  )
247
228
  ) {
248
- cy.log(`Pulled remote docker image found : ${image}`);
249
- throw new Error(`Pulled remote docker image found : ${image}`);
229
+ cy.log(`Local docker image found : ${image}`);
250
230
 
251
231
  return cy.wrap(image);
252
232
  }
253
233
 
254
234
  cy.log(`Pulling remote docker image : ${image}`);
255
-
256
235
  throw new Error(`Pulling remote docker image : ${image}`);
257
236
 
258
237
  return cy.exec(`docker pull ${image}`).then(() => cy.wrap(image));
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.4",
4
+ "version": "23.10.1-MON-20421-docker-cache.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"