@opencode/codemode 0.0.0-dev-19460 → 0.0.0-dev-19462

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.
@@ -3,9 +3,8 @@ import { InterpreterRuntimeError } from "../interpreter/model.js";
3
3
  import { coerceToString } from "./value.js";
4
4
  // WebIDL DOMString conversion: a missing argument is a TypeError, anything else stringifies.
5
5
  const base64 = (name) => sync(name, (args, node) => {
6
- if (args.length === 0) {
7
- throw new InterpreterRuntimeError(`${name} requires 1 argument, but only 0 were provided.`, node).as("TypeError");
8
- }
6
+ if (args.length === 0)
7
+ throw new InterpreterRuntimeError(`${name} requires 1 argument (a string)`, node).as("TypeError");
9
8
  const input = coerceToString(args[0]);
10
9
  try {
11
10
  return name === "atob" ? atob(input) : btoa(input);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/codemode",
4
- "version": "0.0.0-dev-19460",
4
+ "version": "0.0.0-dev-19462",
5
5
  "description": "Effect-native confined code execution over schema-described tools",
6
6
  "type": "module",
7
7
  "license": "MIT",