@ariga/atlas 0.37.0 → 1.0.0

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.
Files changed (2) hide show
  1. package/install.js +4 -2
  2. package/package.json +5 -4
package/install.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  "use strict";
4
4
  import fs from "fs";
5
- import fetch from "node-fetch";
6
5
  import path from "path";
7
6
  import { execFileSync } from "child_process";
8
7
 
@@ -47,8 +46,11 @@ const args = ["--no-install", "--output", binPath, "--platform", platform, "-y",
47
46
  // download the atlas installation script from installURL
48
47
  async function getInstallScript() {
49
48
  const resp = await fetch(installURL);
49
+ if (!resp.ok) {
50
+ throw new Error(`Failed to download install script: ${resp.statusText}`);
51
+ }
50
52
  return resp.text();
51
- };
53
+ }
52
54
 
53
55
  function runInstallScript(path, version) {
54
56
  if (version !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariga/atlas",
3
- "version": "0.37.0",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "description": "Atlas is a language-agnostic tool for managing and migrating database schemas using modern DevOps principles",
6
6
  "author": "",
@@ -12,8 +12,9 @@
12
12
  "bin": {
13
13
  "atlas": "atlas"
14
14
  },
15
+ "engines": {
16
+ "node": ">=18.0.0"
17
+ },
15
18
  "homepage": "https://atlasgo.io",
16
- "dependencies": {
17
- "node-fetch": "^3.3.1"
18
- }
19
+ "dependencies": {}
19
20
  }