Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smartclient-eval

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartclient-eval - npm Package Compare versions

Comparing version 0.9.21 to 0.9.22

2

package.json

@@ -37,3 +37,3 @@ {

},
"version": "0.9.21"
"version": "0.9.22"
}

@@ -801,7 +801,15 @@ #!/usr/bin/env node

;
let contextPath;
if (modulesDir.startsWith(dependentPath)) {
const isomorphicRegExp = this._getPathSegmentRegExp(Const.ISOMORPHIC_DIR);
contextPath = modulesDir.substring(dependentPath.length + 1).
match(isomorphicRegExp)[0];
modulesDir = "../../.." + Update._canonicalizePath(
modulesDir.substring(dependentPath.length));
contextPath = Update._canonicalizePath(contextPath);
} else {
modulesDir = Update._canonicalizePath(modulesDir);
console.warn("Helper pages will not be loadable for path " + modulesDir +
" not under the dependent module");
}

@@ -843,2 +851,6 @@

if (contextPath != null) { // add rule to allow loading of the HTML helpers
contents += "\n" + this._getHelperPageLoaderConfigCode(contextPath, modulesDir);
}
fs.outputFileSync(loaderPath, contents);

@@ -1135,2 +1147,20 @@ }

/**
* (Internal) Return code to configure the helper page loader
*
* @param (string) contextPath - loader context path or empty string
* @param (string) modulesDir - path to the framework modules
* @return (string) code to configure the helper page loader
*/
static _getHelperPageLoaderConfigCode(contextPath, modulesDir) {
const helpers = ["empty", "Log", "printFrame"];
return "require.context(\n" +
" '!!file-loader?context=" + contextPath +
"&name=[path][name].[ext]!" + modulesDir + "/../helpers',\n" +
" true, /(" + helpers.join("|") + ")\\.html$/\n" +
");\n"
;
}
/**
* (Internal) Returns whether to consider "prompt" option true

@@ -1137,0 +1167,0 @@ *

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc