@leftium/gg 0.0.44 → 0.0.45

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.
@@ -747,7 +747,9 @@ export function transformGgCalls(code, shortPath, filePath, svelteInfo, jsFuncti
747
747
  }
748
748
  // Extract the first argument (the namespace string)
749
749
  // Look for the string literal after 'gg.ns('
750
- const afterNsParen = i + 6; // position after 'gg.ns('
750
+ let afterNsParen = i + 6; // position after 'gg.ns('
751
+ while (afterNsParen < code.length && /\s/.test(code[afterNsParen]))
752
+ afterNsParen++;
751
753
  const quoteChar = code[afterNsParen];
752
754
  if (quoteChar === "'" || quoteChar === '"') {
753
755
  // Find the closing quote
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leftium/gg",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Leftium/gg.git"