File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ def remove(package)
56
56
end
57
57
58
58
private
59
+ def post_json ( body )
60
+ Net ::HTTP . post ( self . class . endpoint , body . to_json , "Content-Type" => "application/json" )
61
+ rescue => error
62
+ raise HTTPError , "Unexpected transport error (#{ error . class } : #{ error . message } )"
63
+ end
64
+
59
65
def extract_parsed_imports ( response )
60
66
JSON . parse ( response . body ) . dig ( "map" , "imports" )
61
67
end
@@ -74,12 +80,6 @@ def parse_service_error(response)
74
80
nil
75
81
end
76
82
77
- def post_json ( body )
78
- Net ::HTTP . post ( self . class . endpoint , body . to_json , "Content-Type" => "application/json" )
79
- rescue => error
80
- raise HTTPError , "Unexpected transport error (#{ error . class } : #{ error . message } )"
81
- end
82
-
83
83
def importmap
84
84
@importmap ||= File . read ( @importmap_path )
85
85
end
You can’t perform that action at this time.
0 commit comments