@ecmaos/coreutils 0.6.0 → 0.6.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.
@@ -1,5 +1,5 @@
1
1
 
2
2
 
3
- > @ecmaos/coreutils@0.6.0 build /home/archmag0s/code/ecmaos/core/utils
3
+ > @ecmaos/coreutils@0.6.1 build /home/archmag0s/code/ecmaos/core/utils
4
4
  > tsc
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ecmaos/coreutils
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0443224: tty device support
8
+ - Updated dependencies [0443224]
9
+ - @ecmaos/types@0.8.2
10
+
3
11
  ## 0.6.0
4
12
 
5
13
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecmaos/coreutils",
3
3
  "description": "ecmaOS: Core utilities for the ecmaOS framework",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "license": "MIT+Apache-2.0",
6
6
  "homepage": "https://ecmaos.sh",
7
7
  "repository": "https://github.com/ecmaos/ecmaos",
@@ -42,7 +42,7 @@
42
42
  "marked": "^17.0.1",
43
43
  "modern-tar": "^0.7.3",
44
44
  "vim-wasm": "^0.0.13",
45
- "@ecmaos/types": "^0.8.1"
45
+ "@ecmaos/types": "^0.8.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/ansi-escape-sequences": "^4.0.4",
@@ -0,0 +1,31 @@
1
+ declare module 'vim-wasm/vimwasm.js' {
2
+ export interface VimWasmOptions {
3
+ canvas: HTMLCanvasElement
4
+ input: HTMLInputElement
5
+ workerScriptPath: string
6
+ }
7
+
8
+ export interface VimWasmStartOptions {
9
+ files: Record<string, string>
10
+ dirs: string[]
11
+ cmdArgs: string[]
12
+ debug: boolean
13
+ }
14
+
15
+ export class VimWasm {
16
+ constructor(options: VimWasmOptions)
17
+
18
+ cmdline(command: string): Promise<void>
19
+ isRunning(): boolean
20
+ resize(width: number, height: number): void
21
+ start(options: VimWasmStartOptions): void
22
+
23
+ onFileExport?: (fullpath: string, contents: ArrayBuffer) => Promise<void>
24
+ onVimExit?: (status: number) => void
25
+ onError?: (err: Error) => Promise<void>
26
+ onTitleUpdate?: (title: string) => void
27
+ onVimInit?: () => Promise<void>
28
+ }
29
+
30
+ export function checkBrowserCompatibility(): string | undefined
31
+ }
package/tsconfig.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "extends": "@ecmaos/config-typescript/tsconfig.base.json",
3
- "include": ["src/**/*.ts"],
4
- "exclude": ["node_modules", "dist"],
3
+ "include": ["src/**/*.ts", "src/**/*.d.ts"],
4
+ "exclude": ["**/node_modules/**", "dist"],
5
5
  "compilerOptions": {
6
6
  "baseUrl": "./",
7
7
  "rootDir": "./src",
8
8
  "outDir": "./dist",
9
+ "paths": {
10
+ "vim-wasm/vimwasm.js": ["./src/types/vim-wasm.d.ts"]
11
+ },
9
12
  "target": "ESNext",
10
13
  "useDefineForClassFields": true,
11
14
  "module": "ESNext",
12
15
  "lib": ["ESNext", "DOM", "DOM.Iterable"],
13
16
  "skipLibCheck": true,
17
+ "skipDefaultLibCheck": true,
14
18
 
15
19
  "types": [
16
20
  "./node_modules/user-agent-data-types"