@secondts/bark-react-native 0.1.2-beta.13 → 0.1.2-beta.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondts/bark-react-native",
3
- "version": "0.1.2-beta.13",
3
+ "version": "0.1.2-beta.17",
4
4
  "description": "Bark FFI bindings for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -82,9 +82,10 @@
82
82
  "registry": "https://registry.npmjs.org/",
83
83
  "access": "public"
84
84
  },
85
+ "releaseTag": "v0.1.2-beta.17+bark.0.1.0-beta.7",
85
86
  "checksums": {
86
- "android": "ea3b3186125ac64b695ff6ed89c11d7a5b78d1e1d72b1ec3aa21352f57cccaad",
87
- "ios": "c9686f82872fd1d2fe1196ec6daf60c8d4020033cefac4e951a3da28d6901454"
87
+ "android": "64c126e40fb36eb74c0a1ce6baaf392da87f85c55e83cf8f7442296307e8900c",
88
+ "ios": "f48372f05c8fd1ea9209d26dcde946759aca8e5d6dbf2e924685c5055aad8759"
88
89
  },
89
90
  "dependencies": {
90
91
  "uniffi-bindgen-react-native": "^0.29.3-1"
@@ -171,7 +171,7 @@ async function main() {
171
171
  const packageJson = JSON.parse(
172
172
  fs.readFileSync(path.join(PACKAGE_ROOT, "package.json"), "utf8"),
173
173
  );
174
- const { version, checksums } = packageJson;
174
+ const { checksums } = packageJson;
175
175
 
176
176
  if (!checksums || !checksums.android) {
177
177
  console.log(
@@ -186,11 +186,13 @@ async function main() {
186
186
  return;
187
187
  }
188
188
 
189
- // npm strips build metadata (everything after +) from versions, so package.json may
190
- // contain 0.0.1+bark.0.1.0-beta.7 but 'version' variable will be just 0.0.1
191
- // The GitLab release tag uses the full semantic version with build metadata
192
- const fullVersion = version; // This is what package.json says
193
- const releaseTag = `v${fullVersion}`; // Use full version from package.json
189
+ // npm strips build metadata (everything after +) from the version field,
190
+ // so we use the releaseTag field which preserves the full version with build metadata
191
+ const releaseTag = packageJson.releaseTag;
192
+ if (!releaseTag) {
193
+ console.error("[bark-react-native] No releaseTag found in package.json");
194
+ process.exit(1);
195
+ }
194
196
 
195
197
  console.log(
196
198
  `[bark-react-native] Downloading prebuilt binaries for ${releaseTag}...`,
@@ -214,7 +216,8 @@ async function main() {
214
216
  }
215
217
 
216
218
  const zipPath = path.join(PACKAGE_ROOT, artifact.zipName);
217
- const url = `${BASE_URL}/${releaseTag}/downloads/${artifact.zipName}`;
219
+ const encodedTag = releaseTag.replace(/\+/g, "%2B");
220
+ const url = `${BASE_URL}/${encodedTag}/downloads/${artifact.zipName}`;
218
221
 
219
222
  try {
220
223
  await downloadAndExtract(artifact.name, url, zipPath, checksum);