@stylable/node
Advanced tools
Comparing version 2.5.3 to 3.0.0
@@ -12,3 +12,9 @@ "use strict"; | ||
function attachHook({ matcher, afterCompile, stylableConfig, runtimePath, ignoreJSModules, legacyRuntime } = {}) { | ||
const stylableToModule = module_utils_1.stylableModuleFactory(Object.assign({ projectRoot: 'root', fileSystem: fs_1.default, requireModule: require, resolveNamespace: resolve_namespace_1.resolveNamespace }, stylableConfig), { runtimePath, legacyRuntime }); | ||
const stylableToModule = module_utils_1.stylableModuleFactory({ | ||
projectRoot: 'root', | ||
fileSystem: fs_1.default, | ||
requireModule: require, | ||
resolveNamespace: resolve_namespace_1.resolveNamespace, | ||
...stylableConfig | ||
}, { runtimePath, legacyRuntime }); | ||
if (!matcher) { | ||
@@ -15,0 +21,0 @@ matcher = defaultStylableMatcher; |
@@ -14,3 +14,5 @@ "use strict"; | ||
const fromRoot = path_1.relative(path_1.dirname(configPath), stylesheetPath).replace(/\\/g, '/'); | ||
return prefix + namespace + murmurhash_1.default.v3(hashSalt + config.name + '@' + config.version + '/' + fromRoot); | ||
return (prefix + | ||
namespace + | ||
murmurhash_1.default.v3(hashSalt + config.name + '@' + config.version + '/' + fromRoot)); | ||
}; | ||
@@ -17,0 +19,0 @@ } |
{ | ||
"name": "@stylable/node", | ||
"version": "2.5.3", | ||
"version": "3.0.0", | ||
"description": "Integrate Stylable into your node application", | ||
@@ -14,4 +14,4 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^2.5.3", | ||
"@stylable/module-utils": "^2.5.3", | ||
"@stylable/core": "^3.0.0", | ||
"@stylable/module-utils": "^3.0.0", | ||
"find-config": "^1.0.0", | ||
@@ -25,3 +25,3 @@ "murmurhash": "^0.0.2" | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
}, | ||
@@ -34,3 +34,3 @@ "publishConfig": { | ||
"license": "BSD-3-Clause", | ||
"gitHead": "34fda1233d815a4b6729c56f8fccec749335d5e8" | ||
"gitHead": "91b92e8380ec81e5ad6ae4d96625f8d9e972c50d" | ||
} |
@@ -1,2 +0,2 @@ | ||
const {attachHook} = require(__dirname) | ||
attachHook() | ||
const { attachHook } = require(__dirname); | ||
attachHook(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14091
125
+ Added@stylable/core@3.13.2(transitive)
+ Added@stylable/module-utils@3.13.2(transitive)
+ Addeddetect-newline@3.1.0(transitive)
+ Addedis-url-superb@5.0.0(transitive)
+ Addedis-vendor-prefixed@4.0.0(transitive)
+ Addedjest-docblock@26.0.0(transitive)
+ Addedmurmurhash@1.0.0(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.5.1(transitive)
+ Addedpostcss-js@3.0.3(transitive)
+ Addedpostcss-nested@5.0.6(transitive)
+ Addedpostcss-safe-parser@5.0.2(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedtoky@0.1.0(transitive)
- Removed@stylable/core@2.5.3(transitive)
- Removed@stylable/module-utils@2.5.3(transitive)
- Removeddetect-newline@2.1.0(transitive)
- Removedip-regex@4.3.0(transitive)
- Removedis-vendor-prefixed@3.5.0(transitive)
- Removedjest-docblock@24.9.0(transitive)
- Removedpostcss-js@2.0.3(transitive)
- Removedpostcss-nested@4.2.3(transitive)
- Removedpostcss-safe-parser@4.0.2(transitive)
- Removedtlds@1.255.0(transitive)
- Removedurl-regex@5.0.0(transitive)
Updated@stylable/core@^3.0.0