codeplay-common 4.10.6 → 4.10.7

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.
@@ -106,7 +106,7 @@ function syncImports(projectRoot, packageName) {
106
106
  for (const file of files) {
107
107
  const original = fs.readFileSync(file, 'utf8');
108
108
  const next = original.replace(/(['"`])([^'"`\r\n]+)\1/g, (match, quote, specifier) => {
109
- if (!/admob-(?:emi-nextgen|app-open-state|nextgen)-/.test(specifier)) return match;
109
+ if (!/admob-(?:emi-nextgen|app-open-state|nextgen)-|(?:^|\/)test-admob\.js(?:[?#]|$)/.test(specifier)) return match;
110
110
  if (specifier.includes('${')) throw new Error(`Computed AdMob import needs migration before cleanup: ${file}`);
111
111
  const suffixIndex = specifier.search(/[?#]/);
112
112
  const suffix = suffixIndex < 0 ? '' : specifier.slice(suffixIndex);
@@ -119,6 +119,7 @@ function syncImports(projectRoot, packageName) {
119
119
  let name;
120
120
  if (/^admob-emi-nextgen-\d+(?:\.\d+)*\.js$/.test(relative)) name = REQUIRED_FILES[0];
121
121
  else if (/^admob-app-open-state-\d+(?:\.\d+)*\.js$/.test(relative)) name = REQUIRED_FILES[1];
122
+ else if (relative === 'test-admob.js') name = 'test-admob.js';
122
123
  else {
123
124
  const folderFile = relative.match(/^admob-nextgen-\d+(?:\.\d+)*\/(.+)$/);
124
125
  if (!folderFile) return match;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "4.10.6",
3
+ "version": "4.10.7",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",