webpack-loader-api-exec
Advanced tools
+4
-5
@@ -1,8 +0,7 @@ | ||
| const vm = require('vm'); | ||
| const { NodeVM } = require('vm2'); | ||
| module.exports = function(moduleStr, options = {}, ctx = {}) { | ||
| const context = vm.createContext(ctx); | ||
| const script = new vm.Script(moduleStr, options); | ||
| const vm = new NodeVM( Object.assign({}, options, { sandbox: ctx }) ); | ||
| return script.runInContext(context); | ||
| }; | ||
| return vm.run(moduleStr); | ||
| }; |
+5
-2
| { | ||
| "name": "webpack-loader-api-exec", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Replace this.exec inside webpack loader", | ||
@@ -20,3 +20,6 @@ "main": "index.js", | ||
| "author": "Andrey Makarychev <shiftmailbox@gmail.com>", | ||
| "license": "MIT" | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "vm2": "^3.5.2" | ||
| } | ||
| } |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="JavaScriptLibraryMappings"> | ||
| <includedPredefinedLibrary name="Node.js Core" /> | ||
| </component> | ||
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="MarkdownProjectSettings"> | ||
| <PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="false" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="false" synchronizeSourcePosition="false" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="true" showSelectionInPreview="true" openRemoteLinks="true"> | ||
| <PanelProvider> | ||
| <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" /> | ||
| </PanelProvider> | ||
| </PreviewSettings> | ||
| <ParserSettings gitHubSyntaxChange="false"> | ||
| <PegdownExtensions> | ||
| <option name="ABBREVIATIONS" value="false" /> | ||
| <option name="ANCHORLINKS" value="true" /> | ||
| <option name="ASIDE" value="false" /> | ||
| <option name="ATXHEADERSPACE" value="true" /> | ||
| <option name="AUTOLINKS" value="true" /> | ||
| <option name="DEFINITIONS" value="false" /> | ||
| <option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" /> | ||
| <option name="FENCED_CODE_BLOCKS" value="true" /> | ||
| <option name="FOOTNOTES" value="false" /> | ||
| <option name="HARDWRAPS" value="false" /> | ||
| <option name="HTML_DEEP_PARSER" value="false" /> | ||
| <option name="INSERTED" value="false" /> | ||
| <option name="QUOTES" value="false" /> | ||
| <option name="RELAXEDHRULES" value="true" /> | ||
| <option name="SMARTS" value="false" /> | ||
| <option name="STRIKETHROUGH" value="true" /> | ||
| <option name="SUBSCRIPT" value="false" /> | ||
| <option name="SUPERSCRIPT" value="false" /> | ||
| <option name="SUPPRESS_HTML_BLOCKS" value="false" /> | ||
| <option name="SUPPRESS_INLINE_HTML" value="false" /> | ||
| <option name="TABLES" value="true" /> | ||
| <option name="TASKLISTITEMS" value="true" /> | ||
| <option name="TOC" value="false" /> | ||
| <option name="WIKILINKS" value="true" /> | ||
| </PegdownExtensions> | ||
| <ParserOptions> | ||
| <option name="COMMONMARK_LISTS" value="false" /> | ||
| <option name="DUMMY" value="false" /> | ||
| <option name="EMOJI_SHORTCUTS" value="true" /> | ||
| <option name="FLEXMARK_FRONT_MATTER" value="false" /> | ||
| <option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" /> | ||
| <option name="GFM_TABLE_RENDERING" value="true" /> | ||
| <option name="GITBOOK_URL_ENCODING" value="false" /> | ||
| <option name="GITHUB_EMOJI_URL" value="false" /> | ||
| <option name="GITHUB_LISTS" value="true" /> | ||
| <option name="GITHUB_WIKI_LINKS" value="true" /> | ||
| <option name="JEKYLL_FRONT_MATTER" value="false" /> | ||
| <option name="SIM_TOC_BLANK_LINE_SPACER" value="true" /> | ||
| </ParserOptions> | ||
| </ParserSettings> | ||
| <HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true" embedImages="false" embedHttpImages="false"> | ||
| <GeneratorProvider> | ||
| <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" /> | ||
| </GeneratorProvider> | ||
| <headerTop /> | ||
| <headerBottom /> | ||
| <bodyTop /> | ||
| <bodyBottom /> | ||
| </HtmlSettings> | ||
| <CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true"> | ||
| <StylesheetProvider> | ||
| <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" /> | ||
| </StylesheetProvider> | ||
| <ScriptProviders /> | ||
| <cssText /> | ||
| </CssSettings> | ||
| <HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" /> | ||
| <LinkMapSettings> | ||
| <textMaps /> | ||
| </LinkMapSettings> | ||
| </component> | ||
| </project> |
| <component name="MarkdownNavigator.ProfileManager"> | ||
| <settings default="" pdf-export="" /> | ||
| </component> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="JavaScriptSettings"> | ||
| <option name="languageLevel" value="ES6" /> | ||
| </component> | ||
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ProjectModuleManager"> | ||
| <modules> | ||
| <module fileurl="file://$PROJECT_DIR$/.idea/webpack-loader-api-exec.iml" filepath="$PROJECT_DIR$/.idea/webpack-loader-api-exec.iml" /> | ||
| </modules> | ||
| </component> | ||
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="VcsDirectoryMappings"> | ||
| <mapping directory="$PROJECT_DIR$" vcs="Git" /> | ||
| </component> | ||
| </project> |
Sorry, the diff of this file is not supported yet
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ChangeListManager"> | ||
| <list default="true" id="28d700dd-36ee-4414-b047-c459d4b2b293" name="Default" comment="" /> | ||
| <ignored path="$PROJECT_DIR$/.tmp/" /> | ||
| <ignored path="$PROJECT_DIR$/temp/" /> | ||
| <ignored path="$PROJECT_DIR$/tmp/" /> | ||
| <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | ||
| <option name="TRACKING_ENABLED" value="true" /> | ||
| <option name="SHOW_DIALOG" value="false" /> | ||
| <option name="HIGHLIGHT_CONFLICTS" value="true" /> | ||
| <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | ||
| <option name="LAST_RESOLUTION" value="IGNORE" /> | ||
| </component> | ||
| <component name="FileEditorManager"> | ||
| <leaf> | ||
| <file leaf-file-name="package.json" pinned="false" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="221"> | ||
| <caret line="13" column="17" lean-forward="true" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="index.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="119"> | ||
| <caret line="7" column="2" lean-forward="true" selection-start-line="7" selection-start-column="2" selection-end-line="7" selection-end-column="2" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="README.md" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]"> | ||
| <state split_layout="SPLIT"> | ||
| <first_editor relative-caret-position="374"> | ||
| <caret line="21" column="3" lean-forward="false" selection-start-line="21" selection-start-column="3" selection-end-line="21" selection-end-column="3" /> | ||
| <folding /> | ||
| </first_editor> | ||
| <second_editor> | ||
| <js_state /> | ||
| </second_editor> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| </leaf> | ||
| </component> | ||
| <component name="Git.Settings"> | ||
| <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> | ||
| </component> | ||
| <component name="IdeDocumentHistory"> | ||
| <option name="CHANGED_PATHS"> | ||
| <list> | ||
| <option value="$PROJECT_DIR$/index.js" /> | ||
| <option value="$PROJECT_DIR$/README.md" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| </list> | ||
| </option> | ||
| </component> | ||
| <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> | ||
| <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> | ||
| <component name="JsFlowSettings"> | ||
| <service-enabled>true</service-enabled> | ||
| <exe-path /> | ||
| <other-services-enabled>true</other-services-enabled> | ||
| <auto-save>true</auto-save> | ||
| </component> | ||
| <component name="JsGulpfileManager"> | ||
| <detection-done>true</detection-done> | ||
| <sorting>DEFINITION_ORDER</sorting> | ||
| </component> | ||
| <component name="ProjectFrameBounds"> | ||
| <option name="y" value="22" /> | ||
| <option name="width" value="2187" /> | ||
| <option name="height" value="1009" /> | ||
| </component> | ||
| <component name="ProjectLevelVcsManager" settingsEditedManually="true" /> | ||
| <component name="ProjectView"> | ||
| <navigator currentView="ProjectPane" proportions="" version="1"> | ||
| <flattenPackages /> | ||
| <showMembers /> | ||
| <showModules /> | ||
| <showLibraryContents /> | ||
| <hideEmptyPackages /> | ||
| <abbreviatePackageNames /> | ||
| <autoscrollToSource /> | ||
| <autoscrollFromSource /> | ||
| <sortByType /> | ||
| <manualOrder /> | ||
| <foldersAlwaysOnTop value="true" /> | ||
| </navigator> | ||
| <panes> | ||
| <pane id="Scope" /> | ||
| <pane id="Scratches" /> | ||
| <pane id="ProjectPane"> | ||
| <subPane> | ||
| <expand> | ||
| <path> | ||
| <item name="webpack-loader-api-exec" type="b2602c69:ProjectViewProjectNode" /> | ||
| <item name="webpack-loader-api-exec" type="462c0819:PsiDirectoryNode" /> | ||
| </path> | ||
| </expand> | ||
| <select /> | ||
| </subPane> | ||
| </pane> | ||
| </panes> | ||
| </component> | ||
| <component name="PropertiesComponent"> | ||
| <property name="settings.editor.selected.configurable" value="settings.nodejs" /> | ||
| <property name="nodejs_interpreter_path.stuck_in_default_project" value="/usr/local/bin/node" /> | ||
| <property name="WebServerToolWindowFactoryState" value="false" /> | ||
| <property name="JavaScriptWeakerCompletionTypeGuess" value="true" /> | ||
| <property name="javascript.nodejs.core.library.configured.version" value="8.4.0" /> | ||
| </component> | ||
| <component name="RunDashboard"> | ||
| <option name="ruleStates"> | ||
| <list> | ||
| <RuleState> | ||
| <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> | ||
| </RuleState> | ||
| <RuleState> | ||
| <option name="name" value="StatusDashboardGroupingRule" /> | ||
| </RuleState> | ||
| </list> | ||
| </option> | ||
| </component> | ||
| <component name="ShelveChangesManager" show_recycled="false"> | ||
| <option name="remove_strategy" value="false" /> | ||
| </component> | ||
| <component name="SvnConfiguration"> | ||
| <configuration /> | ||
| </component> | ||
| <component name="TaskManager"> | ||
| <task active="true" id="Default" summary="Default task"> | ||
| <changelist id="28d700dd-36ee-4414-b047-c459d4b2b293" name="Default" comment="" /> | ||
| <created>1519919073248</created> | ||
| <option name="number" value="Default" /> | ||
| <option name="presentableId" value="Default" /> | ||
| <updated>1519919073248</updated> | ||
| <workItem from="1519919074476" duration="3978000" /> | ||
| </task> | ||
| <servers /> | ||
| </component> | ||
| <component name="TimeTrackingManager"> | ||
| <option name="totallyTimeSpent" value="3978000" /> | ||
| </component> | ||
| <component name="ToolWindowManager"> | ||
| <frame x="0" y="22" width="2187" height="1009" extended-state="0" /> | ||
| <layout> | ||
| <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20406279" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32932165" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| </layout> | ||
| </component> | ||
| <component name="TypeScriptGeneratedFilesManager"> | ||
| <option name="version" value="1" /> | ||
| </component> | ||
| <component name="VcsContentAnnotationSettings"> | ||
| <option name="myLimit" value="2678400000" /> | ||
| </component> | ||
| <component name="XDebuggerManager"> | ||
| <breakpoint-manager /> | ||
| <watches-manager /> | ||
| </component> | ||
| <component name="editorHistoryManager"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="119"> | ||
| <caret line="7" column="2" lean-forward="true" selection-start-line="7" selection-start-column="2" selection-end-line="7" selection-end-column="2" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]"> | ||
| <state split_layout="SPLIT"> | ||
| <first_editor relative-caret-position="374"> | ||
| <caret line="21" column="3" lean-forward="false" selection-start-line="21" selection-start-column="3" selection-end-line="21" selection-end-column="3" /> | ||
| <folding /> | ||
| </first_editor> | ||
| <second_editor> | ||
| <js_state /> | ||
| </second_editor> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state relative-caret-position="221"> | ||
| <caret line="13" column="17" lean-forward="true" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </component> | ||
| </project> |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
2407
-88.11%1
Infinity%4
-66.67%+ Added
+ Added
+ Added
+ Added