@nativescript/core 8.9.0-next-01-14-2025-12761272657 → 8.9.0-next-01-17-2025-12834437745

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": "@nativescript/core",
3
- "version": "8.9.0-next-01-14-2025-12761272657",
3
+ "version": "8.9.0-next-01-17-2025-12834437745",
4
4
  "description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
5
5
  "main": "index",
6
6
  "types": "index.d.ts",
package/wgc/atob.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function atob(data) {
2
2
  if (__ANDROID__) {
3
- return org.nativescript.winter_cg.Utils.atob(data);
3
+ return org.nativescript.winter_tc.Utils.atob(data);
4
4
  }
5
5
  if (__IOS__) {
6
6
  return NSString.atob(data);
package/wgc/btoa.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function btoa(stringToEncode) {
2
2
  if (__ANDROID__) {
3
- return org.nativescript.winter_cg.Utils.btoa(stringToEncode);
3
+ return org.nativescript.winter_tc.Utils.btoa(stringToEncode);
4
4
  }
5
5
  if (__IOS__) {
6
6
  return NSString.btoa(stringToEncode);
@@ -171,7 +171,7 @@ export class SubtleCrypto {
171
171
  }
172
172
  if (__ANDROID__) {
173
173
  //const instance = java.security.MessageDigest.getInstance(algorithm);
174
- const buffer = org.nativescript.winter_cg.Crypto.digest(mode, data);
174
+ const buffer = org.nativescript.winter_tc.Crypto.digest(mode, data);
175
175
  const ab = ArrayBuffer.from(buffer);
176
176
  if (!ab) {
177
177
  // todo throw failure
@@ -181,7 +181,7 @@ export class SubtleCrypto {
181
181
  const digest = instance.digest();
182
182
 
183
183
  const ab = new ArrayBuffer(digest.length);
184
- (<any>org).nativescript.winter_cg.Utils.copyToBuffer(ab, digest);
184
+ (<any>org).nativescript.winter_tc.Utils.copyToBuffer(ab, digest);
185
185
 
186
186
  resolve(ab);
187
187
 
@@ -224,7 +224,7 @@ export class SubtleCrypto {
224
224
  }
225
225
  if (__ANDROID__) {
226
226
  const hash = parseHash(key.algorithm.hash.name);
227
- const ret = org.nativescript.winter_cg.Crypto.encryptRsaOAEP(key[parent_], hash, data);
227
+ const ret = org.nativescript.winter_tc.Crypto.encryptRsaOAEP(key[parent_], hash, data);
228
228
  if (ret) {
229
229
  resolve(ArrayBuffer.from(ret));
230
230
  }
@@ -269,7 +269,7 @@ export class SubtleCrypto {
269
269
  }
270
270
  if (__ANDROID__) {
271
271
  const hash = parseHash(key.algorithm.hash.name);
272
- const ret = org.nativescript.winter_cg.Crypto.decryptRsaOAEP(key[parent_], hash, data);
272
+ const ret = org.nativescript.winter_tc.Crypto.decryptRsaOAEP(key[parent_], hash, data);
273
273
  if (ret) {
274
274
  resolve(ArrayBuffer.from(ret));
275
275
  }
@@ -335,7 +335,7 @@ export class SubtleCrypto {
335
335
  reject(error);
336
336
  return;
337
337
  }
338
- const ab = org.nativescript.winter_cg.Crypto.signHMAC(algo, key[native_], data);
338
+ const ab = org.nativescript.winter_tc.Crypto.signHMAC(algo, key[native_], data);
339
339
  resolve(ArrayBuffer.from(ab));
340
340
  }
341
341
  }
@@ -392,7 +392,7 @@ export class SubtleCrypto {
392
392
  reject(error);
393
393
  return;
394
394
  }
395
- const ret = org.nativescript.winter_cg.Crypto.verifyHMAC(algo, key[native_], signature, data);
395
+ const ret = org.nativescript.winter_tc.Crypto.verifyHMAC(algo, key[native_], signature, data);
396
396
  resolve(ret);
397
397
  }
398
398
  }
@@ -443,7 +443,7 @@ export class SubtleCrypto {
443
443
  if (__ANDROID__) {
444
444
  // const mac = javax.crypto.KeyGenerator.getInstance(algo);
445
445
  // const key = mac.generateKey();
446
- const key = org.nativescript.winter_cg.Crypto.generateKeyHMAC(algo);
446
+ const key = org.nativescript.winter_tc.Crypto.generateKeyHMAC(algo);
447
447
  const ret = new CryptoKey();
448
448
  ret[algorithm_] = { name: algorithm.name, hash: { name: algorithmHash } };
449
449
  ret[native_] = key;
@@ -519,7 +519,7 @@ export class SubtleCrypto {
519
519
  }
520
520
  // const usages = parseUsages(keyUsages);
521
521
  // ignore publicExponent for now
522
- const kp = org.nativescript.winter_cg.Crypto.generateKeyRsaOAEP(algorithm.modulusLength);
522
+ const kp = org.nativescript.winter_tc.Crypto.generateKeyRsaOAEP(algorithm.modulusLength);
523
523
  if (!kp) {
524
524
  reject(new Error('Failed to generateKey'));
525
525
  }
@@ -6,7 +6,7 @@ export class Crypto {
6
6
  }
7
7
  randomUUID() {
8
8
  if (__ANDROID__) {
9
- return org.nativescript.winter_cg.Crypto.randomUUID();
9
+ return org.nativescript.winter_tc.Crypto.randomUUID();
10
10
  }
11
11
  if (__IOS__) {
12
12
  return NSCCrypto.randomUUID();
@@ -17,7 +17,7 @@ export class Crypto {
17
17
  if (typedArray.BYTES_PER_ELEMENT !== 1) {
18
18
  typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset);
19
19
  }
20
- org.nativescript.winter_cg.Crypto.getRandomValues(typedArray);
20
+ org.nativescript.winter_tc.Crypto.getRandomValues(typedArray);
21
21
  }
22
22
  if (__IOS__) {
23
23
  if (typedArray.BYTES_PER_ELEMENT !== 1) {