quickjs 0.13.0.pre → 0.14.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.
data/sig/quickjs.rbs CHANGED
@@ -7,6 +7,9 @@ module Quickjs
7
7
  POLYFILL_INTL: Symbol
8
8
  POLYFILL_FILE: Symbol
9
9
  POLYFILL_HTML_BASE64: Symbol
10
+ POLYFILL_ENCODING: Symbol
11
+ POLYFILL_URL: Symbol
12
+ POLYFILL_CRYPTO: Symbol
10
13
 
11
14
  def self.eval_code: (String code, ?Hash[Symbol, untyped] overwrite_opts) -> untyped
12
15
 
@@ -20,11 +23,13 @@ module Quickjs
20
23
 
21
24
  def eval_code: (String code) -> untyped
22
25
 
26
+ def call: (String | Symbol name, *untyped args) -> untyped
27
+
23
28
  def define_function: (String | Symbol name, *Symbol flags) { (*untyped) -> untyped } -> Symbol
24
29
 
25
30
  def import: (String | Array[String] | Hash[Symbol, String] imported, from: String, ?code_to_expose: String?) -> true
26
31
 
27
- def logs: () -> Array[Log]
32
+ def on_log: () { (Log) -> void } -> nil
28
33
 
29
34
  class Log
30
35
  attr_reader severity: Symbol
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0.pre
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hmsk
@@ -78,19 +78,28 @@ files:
78
78
  - ext/quickjsrb/quickjs/unicode_gen_def.h
79
79
  - ext/quickjsrb/quickjsrb.c
80
80
  - ext/quickjsrb/quickjsrb.h
81
+ - ext/quickjsrb/quickjsrb_crypto.c
82
+ - ext/quickjsrb/quickjsrb_crypto.h
83
+ - ext/quickjsrb/quickjsrb_crypto_subtle.c
84
+ - ext/quickjsrb/quickjsrb_crypto_subtle.h
81
85
  - ext/quickjsrb/quickjsrb_file.c
82
86
  - ext/quickjsrb/quickjsrb_file.h
83
87
  - ext/quickjsrb/vendor/polyfill-encoding.min.js
84
88
  - ext/quickjsrb/vendor/polyfill-file.min.js
85
89
  - ext/quickjsrb/vendor/polyfill-intl-en.min.js
90
+ - ext/quickjsrb/vendor/polyfill-url.min.js
86
91
  - lib/quickjs.rb
92
+ - lib/quickjs/crypto_key.rb
93
+ - lib/quickjs/subtle_crypto.rb
87
94
  - lib/quickjs/version.rb
95
+ - polyfills/check-licenses.mjs
88
96
  - polyfills/package-lock.json
89
97
  - polyfills/package.json
90
98
  - polyfills/rolldown.config.mjs
91
99
  - polyfills/src/encoding.js
92
100
  - polyfills/src/file.js
93
101
  - polyfills/src/intl-en.js
102
+ - polyfills/src/url.js
94
103
  - sig/quickjs.rbs
95
104
  homepage: https://github.com/hmsk/quickjs.rb
96
105
  licenses:
@@ -106,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
115
  requirements:
107
116
  - - ">="
108
117
  - !ruby/object:Gem::Version
109
- version: 3.0.0
118
+ version: 3.1.0
110
119
  required_rubygems_version: !ruby/object:Gem::Requirement
111
120
  requirements:
112
121
  - - ">="