@fastgpt-sdk/sandbox-adapter 0.0.40-beta.3 → 0.0.40-beta.4

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.
package/dist/index.cjs CHANGED
@@ -45741,8 +45741,9 @@ function parseImageSpec(image) {
45741
45741
  if (atIndex > -1) {
45742
45742
  return { repository: image.slice(0, atIndex), digest: image.slice(atIndex + 1) };
45743
45743
  }
45744
- const colonIndex = image.indexOf(":");
45745
- if (colonIndex > -1) {
45744
+ const slashIndex = image.lastIndexOf("/");
45745
+ const colonIndex = image.lastIndexOf(":");
45746
+ if (colonIndex > slashIndex) {
45746
45747
  return { repository: image.slice(0, colonIndex), tag: image.slice(colonIndex + 1) };
45747
45748
  }
45748
45749
  return { repository: image };
package/dist/index.js CHANGED
@@ -45725,8 +45725,9 @@ function parseImageSpec(image) {
45725
45725
  if (atIndex > -1) {
45726
45726
  return { repository: image.slice(0, atIndex), digest: image.slice(atIndex + 1) };
45727
45727
  }
45728
- const colonIndex = image.indexOf(":");
45729
- if (colonIndex > -1) {
45728
+ const slashIndex = image.lastIndexOf("/");
45729
+ const colonIndex = image.lastIndexOf(":");
45730
+ if (colonIndex > slashIndex) {
45730
45731
  return { repository: image.slice(0, colonIndex), tag: image.slice(colonIndex + 1) };
45731
45732
  }
45732
45733
  return { repository: image };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastgpt-sdk/sandbox-adapter",
3
- "version": "0.0.40-beta.3",
3
+ "version": "0.0.40-beta.4",
4
4
  "description": "Unified abstraction layer for cloud sandbox providers with adapter pattern and feature polyfilling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",