1 #ifndef CUSTOM_IMPORTER_BRIDGE_H
2 #define CUSTOM_IMPORTER_BRIDGE_H
5 #include <sass/functions.h>
6 #include <sass/values.h>
7 #include "callback_bridge.h"
9 typedef Sass_Import_List SassImportList;
11 class CustomImporterBridge : public CallbackBridge<SassImportList> {
13 CustomImporterBridge(v8::Local<v8::Function> cb, bool is_sync) : CallbackBridge<SassImportList>(cb, is_sync) {}
16 SassImportList post_process_return_value(v8::Local<v8::Value>) const;
17 Sass_Import* check_returned_string(Nan::MaybeLocal<v8::Value> value, const char *msg) const;
18 Sass_Import* get_importer_entry(const v8::Local<v8::Object>&) const;
19 std::vector<v8::Local<v8::Value>> pre_process_args(std::vector<void*>) const;