craft-native 0.0.486 → 0.0.490

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/mobile.js CHANGED
@@ -1510,7 +1510,7 @@ function postHybrid(message) {
1510
1510
  }
1511
1511
  }
1512
1512
  function isSnapshotName(name) {
1513
- return typeof name === "string" && /^[A-Za-z0-9_-][\w.-]{0,127}$/.test(name);
1513
+ return typeof name === "string" && /^[A-Za-z0-9_:-][\w.:-]{0,127}$/.test(name);
1514
1514
  }
1515
1515
  var snapshots = {
1516
1516
  isAvailable() {
@@ -1518,7 +1518,7 @@ var snapshots = {
1518
1518
  },
1519
1519
  set(name, value) {
1520
1520
  if (!isSnapshotName(name))
1521
- throw new TypeError(`Snapshot names are letters, digits, ".", "_" and "-": ${String(name)}`);
1521
+ throw new TypeError(`Snapshot names are letters, digits, ".", "_", "-" and ":": ${String(name)}`);
1522
1522
  const json = JSON.stringify(value);
1523
1523
  if (json === undefined)
1524
1524
  throw new TypeError(`Snapshot ${name} is not JSON`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "craft-native",
3
- "version": "0.0.486",
3
+ "version": "0.0.490",
4
4
  "type": "module",
5
5
  "description": "Build desktop apps with web languages - TypeScript SDK for Craft",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",