@isolated-vm/experimental 0.0.5 → 0.0.6

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.
@@ -26,7 +26,7 @@ class EXPORT callback_info {
26
26
  const void* info_;
27
27
  };
28
28
 
29
- class callback_info::iterator : public util::random_access_iterator_facade<int> {
29
+ class EXPORT callback_info::iterator : public util::random_access_iterator_facade<int> {
30
30
  public:
31
31
  using arithmetic_facade::operator+;
32
32
  using difference_type = arithmetic_facade::difference_type;
@@ -34,20 +34,20 @@ class callback_info::iterator : public util::random_access_iterator_facade<int>
34
34
  using value_type = callback_info::value_type;
35
35
 
36
36
  iterator() = default;
37
- iterator(const void* info, int index) :
37
+ constexpr iterator(const void* info, int index) :
38
38
  info_{info},
39
39
  index_{index} {}
40
40
 
41
- EXPORT auto operator*() const -> value_type;
42
- auto operator+=(difference_type offset) -> iterator& {
41
+ auto operator*() const -> value_type;
42
+ constexpr auto operator+=(difference_type offset) -> iterator& {
43
43
  index_ += offset;
44
44
  return *this;
45
45
  }
46
- auto operator==(const iterator& right) const -> bool { return index_ == right.index_; }
47
- auto operator<=>(const iterator& right) const -> std::strong_ordering { return index_ <=> right.index_; }
46
+ constexpr auto operator==(const iterator& right) const -> bool { return index_ == right.index_; }
47
+ constexpr auto operator<=>(const iterator& right) const -> std::strong_ordering { return index_ <=> right.index_; }
48
48
 
49
49
  private:
50
- auto operator+() const -> size_type { return index_; }
50
+ constexpr auto operator+() const -> size_type { return index_; }
51
51
 
52
52
  const void* info_{};
53
53
  int index_{};
@@ -55,11 +55,11 @@ class callback_info::iterator : public util::random_access_iterator_facade<int>
55
55
 
56
56
  // ---
57
57
 
58
- EXPORT constexpr auto callback_info::begin() const -> iterator {
58
+ constexpr auto callback_info::begin() const -> iterator {
59
59
  return iterator{info_, 0};
60
60
  };
61
61
 
62
- EXPORT constexpr auto callback_info::end() const -> iterator {
62
+ constexpr auto callback_info::end() const -> iterator {
63
63
  return iterator{info_, size()};
64
64
  };
65
65
 
@@ -26,7 +26,7 @@ class EXPORT bound_value_for_record : public bound_value_next<record_tag> {
26
26
  using value_type = std::pair<key_type, mapped_type>;
27
27
 
28
28
  private:
29
- class iterator_transform {
29
+ class EXPORT iterator_transform {
30
30
  public:
31
31
  explicit iterator_transform(const bound_value_for_record& subject);
32
32
  auto operator()(value_of<> key) const -> value_type;
@@ -26,7 +26,7 @@ class EXPORT bound_value_for_vector : public bound_value_next<vector_tag> {
26
26
  mutable std::uint32_t size_{};
27
27
  };
28
28
 
29
- class bound_value_for_vector::iterator : public util::random_access_iterator_facade<std::int32_t, std::int64_t> {
29
+ class EXPORT bound_value_for_vector::iterator : public util::random_access_iterator_facade<std::int32_t, std::int64_t> {
30
30
  public:
31
31
  using arithmetic_facade::operator+;
32
32
  using difference_type = arithmetic_facade::difference_type;
@@ -38,16 +38,16 @@ class bound_value_for_vector::iterator : public util::random_access_iterator_fac
38
38
 
39
39
  auto operator*() const -> value_type;
40
40
 
41
- auto operator+=(difference_type offset) -> iterator& {
41
+ constexpr auto operator+=(difference_type offset) -> iterator& {
42
42
  index_ += offset;
43
43
  return *this;
44
44
  }
45
45
 
46
- auto operator==(const iterator& right) const -> bool { return index_ == right.index_; }
47
- auto operator<=>(const iterator& right) const -> std::strong_ordering { return index_ <=> right.index_; }
46
+ constexpr auto operator==(const iterator& right) const -> bool { return index_ == right.index_; }
47
+ constexpr auto operator<=>(const iterator& right) const -> std::strong_ordering { return index_ <=> right.index_; }
48
48
 
49
49
  private:
50
- auto operator+() const -> size_type { return index_; }
50
+ constexpr auto operator+() const -> size_type { return index_; }
51
51
 
52
52
  bound_value_for_vector subject_;
53
53
  size_type index_{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isolated-vm/experimental",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "author": "https://github.com/laverdet/",
6
6
  "description": "JavaScript sandbox",
@@ -34,20 +34,20 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^22.1.0",
37
- "@isolated-vm/experimental": "^0.0.5"
37
+ "@isolated-vm/experimental": "^0.0.6"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",
41
41
  "url": "git+https://github.com/laverdet/isolated-vm.git"
42
42
  },
43
43
  "optionalDependencies": {
44
- "@isolated-vm/experimental-linux-arm64-musl": "0.0.5",
45
- "@isolated-vm/experimental-darwin-arm64": "0.0.5",
46
- "@isolated-vm/experimental-linux-arm64-gnu": "0.0.5",
47
- "@isolated-vm/experimental-linux-x64-musl": "0.0.5",
48
- "@isolated-vm/experimental-darwin-x64": "0.0.5",
49
- "@isolated-vm/experimental-win32-x64": "0.0.5",
50
- "@isolated-vm/experimental-linux-x64-gnu": "0.0.5"
44
+ "@isolated-vm/experimental-linux-arm64-musl": "0.0.6",
45
+ "@isolated-vm/experimental-darwin-arm64": "0.0.6",
46
+ "@isolated-vm/experimental-linux-arm64-gnu": "0.0.6",
47
+ "@isolated-vm/experimental-linux-x64-musl": "0.0.6",
48
+ "@isolated-vm/experimental-darwin-x64": "0.0.6",
49
+ "@isolated-vm/experimental-win32-x64": "0.0.6",
50
+ "@isolated-vm/experimental-linux-x64-gnu": "0.0.6"
51
51
  },
52
52
  "scripts": {
53
53
  "test": "${NODE-node} --enable-source-maps --expose-gc --test-reporter=spec --test dist/test/*.js"