@restatedev/restate 1.1.5 → 1.2.0-alpha.1

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/lib/index.js CHANGED
@@ -1,5 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
+ /*
4
+ * Copyright (c) 2023 - 2025 Restate Software, Inc., Restate GmbH.
5
+ * All rights reserved.
6
+ *
7
+ * Use of this software is governed by the Business Source License
8
+ * included in the LICENSE file.
9
+ *
10
+ * As of the Change Date specified in that file, in accordance with
11
+ * the Business Source License, use of this software will be governed
12
+ * by the Apache License, Version 2.0.
13
+ */
3
14
  var __importDefault = (this && this.__importDefault) || function (mod) {
4
15
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
16
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@restatedev/restate",
3
3
  "description": "The Restate CLI",
4
- "version": "1.1.5",
4
+ "version": "1.2.0-alpha.1",
5
5
  "bin": "lib/index.js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,6 +21,9 @@
21
21
  "build": "tsc",
22
22
  "dev": "npm run build && node lib/index.js"
23
23
  },
24
+ "dependencies": {
25
+ "@scarf/scarf": "^1.4.0"
26
+ },
24
27
  "devDependencies": {
25
28
  "@types/node": "^18.11.18",
26
29
  "@typescript-eslint/eslint-plugin": "^5.48.0",
@@ -29,9 +32,9 @@
29
32
  "typescript": "^4.9.4"
30
33
  },
31
34
  "optionalDependencies": {
32
- "@restatedev/restate-linux-x64": "1.1.5",
33
- "@restatedev/restate-linux-arm64": "1.1.5",
34
- "@restatedev/restate-darwin-x64": "1.1.5",
35
- "@restatedev/restate-darwin-arm64": "1.1.5"
35
+ "@restatedev/restate-linux-x64": "1.2.0-alpha.1",
36
+ "@restatedev/restate-linux-arm64": "1.2.0-alpha.1",
37
+ "@restatedev/restate-darwin-x64": "1.2.0-alpha.1",
38
+ "@restatedev/restate-darwin-arm64": "1.2.0-alpha.1"
36
39
  }
37
40
  }
package/src/index.ts CHANGED
@@ -1,7 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ /*
4
+ * Copyright (c) 2023 - 2025 Restate Software, Inc., Restate GmbH.
5
+ * All rights reserved.
6
+ *
7
+ * Use of this software is governed by the Business Source License
8
+ * included in the LICENSE file.
9
+ *
10
+ * As of the Change Date specified in that file, in accordance with
11
+ * the Business Source License, use of this software will be governed
12
+ * by the Apache License, Version 2.0.
13
+ */
14
+
3
15
  import { spawnSync } from "child_process";
4
- import os from 'node:os';
16
+ import os from "node:os";
5
17
 
6
18
  function getExePath() {
7
19
  const arch = os.arch();
@@ -11,7 +23,7 @@ function getExePath() {
11
23
  return require.resolve(`@restatedev/restate-${op}-${arch}/bin/restate`);
12
24
  } catch (e) {
13
25
  throw new Error(
14
- `Couldn't find application binary inside node_modules for ${op}-${arch}`
26
+ `Couldn't find application binary inside node_modules for ${op}-${arch}`,
15
27
  );
16
28
  }
17
29
  }