sass-embedded 1.77.0-x86-mingw-ucrt → 1.77.1-x86-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44ab38b6500a645b7c42b64ebf99f20227c5429abcecee66d1c52937b3acace8
4
- data.tar.gz: 39610d2f5123310edc05697558248e178bf5db3bf1cff5a7f71af8e40fa41e41
3
+ metadata.gz: b4a038acb5b6ec5990af021d5ecd4e0767f9ced3f37487b252cbc2e2e65dc1af
4
+ data.tar.gz: 887947b362bcddf4b07986936640a642680fc451e5225b79d85f11a999a12051
5
5
  SHA512:
6
- metadata.gz: ee471fed840f06a52fcc10017dc2da22eb3cb595e3159548c08d1a78db469b309a2033f4dc6a67de9a423c57b6c4658113b0c84abf27c1f0937e4e19011e7ed9
7
- data.tar.gz: c30819c3f4ea6c543bfc9e2b4f4238f3a777f9793ff942845840710f6c8ecdf9196ecd53ee56fc49b80fe2fecb1d7cb2849125c0cdc3339304578ea0e520d71a
6
+ metadata.gz: 220062db618d7bf9d9afdd6ac0a37c6d66af7f0a602b3c1721fc039123b280e1a112853ceb33f9790f1c1e1fb9ddb5d6eda3e5da20c4b65618c98538e28bd4b7
7
+ data.tar.gz: f9edf4fd44fbd31a15023c7beea94334e013faf00874c4760c4f14b07c62a05b79f965c77d86c9a08d2ba0225e5ee99bdfe60350066d4260eef451b1a6fcc16d
Binary file
@@ -7,13 +7,17 @@ module Sass
7
7
  # @see https://sass-lang.com/documentation/js-api/interfaces/canonicalizecontext/
8
8
  class CanonicalizeContext
9
9
  # @return [String, nil]
10
- attr_reader :containing_url
10
+ def containing_url
11
+ @containing_url_unused = false
12
+ @containing_url
13
+ end
11
14
 
12
15
  # @return [Boolean]
13
16
  attr_reader :from_import
14
17
 
15
18
  # @!visibility private
16
19
  def initialize(canonicalize_request)
20
+ @containing_url_unused = true
17
21
  @containing_url = canonicalize_request.containing_url == '' ? nil : canonicalize_request.containing_url
18
22
  @from_import = canonicalize_request.from_import
19
23
  end
@@ -68,12 +68,14 @@ module Sass
68
68
 
69
69
  def canonicalize(canonicalize_request)
70
70
  importer = @importers_by_id[canonicalize_request.importer_id]
71
+ canonicalize_context = CanonicalizeContext.new(canonicalize_request)
71
72
  url = importer.canonicalize(canonicalize_request.url,
72
- CanonicalizeContext.new(canonicalize_request))&.to_s
73
+ canonicalize_context)&.to_s
73
74
 
74
75
  EmbeddedProtocol::InboundMessage::CanonicalizeResponse.new(
75
76
  id: canonicalize_request.id,
76
- url:
77
+ url:,
78
+ containing_url_unused: canonicalize_context.instance_eval { @containing_url_unused }
77
79
  )
78
80
  rescue StandardError => e
79
81
  EmbeddedProtocol::InboundMessage::CanonicalizeResponse.new(
@@ -103,12 +105,14 @@ module Sass
103
105
 
104
106
  def file_import(file_import_request)
105
107
  importer = @importers_by_id[file_import_request.importer_id]
108
+ canonicalize_context = CanonicalizeContext.new(file_import_request)
106
109
  file_url = importer.find_file_url(file_import_request.url,
107
- CanonicalizeContext.new(file_import_request))&.to_s
110
+ canonicalize_context)&.to_s
108
111
 
109
112
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
110
113
  id: file_import_request.id,
111
- file_url:
114
+ file_url:,
115
+ containing_url_unused: canonicalize_context.instance_eval { @containing_url_unused }
112
116
  )
113
117
  rescue StandardError => e
114
118
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.77.0'
5
+ VERSION = '1.77.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.77.0
4
+ version: 1.77.1
5
5
  platform: x86-mingw-ucrt
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -94,8 +94,8 @@ licenses:
94
94
  - MIT
95
95
  metadata:
96
96
  bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
97
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.0
98
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.0
97
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.1
98
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.1
99
99
  funding_uri: https://github.com/sponsors/ntkme
100
100
  rubygems_mfa_required: 'true'
101
101
  post_install_message: