@stylable/core
Advanced tools
Comparing version 3.6.2 to 3.6.3
@@ -20,3 +20,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -23,0 +23,0 @@ return result; |
@@ -1,7 +0,8 @@ | ||
/// <reference types="node" /> | ||
import * as nodePath from 'path'; | ||
import { processNamespace } from './stylable-processor'; | ||
export declare function packageNamespaceFactory(findConfig: (fileName: string, options: { | ||
cwd: string; | ||
}) => string | null, loadConfig: (filePath: string) => object, { dirname, relative }: Pick<typeof nodePath, 'relative' | 'dirname'>, hashSalt?: string, prefix?: string, normalizeVersion?: (semver: string) => string): typeof processNamespace; | ||
}) => string | null, loadConfig: (filePath: string) => object, { dirname, relative, }: { | ||
dirname(path: string): string; | ||
relative(from: string, to: string): string; | ||
}, hashSalt?: string, prefix?: string, normalizeVersion?: (semver: string) => string): typeof processNamespace; | ||
export declare function noCollisionNamespace({ prefix, used: usedNamespaces, }?: { | ||
@@ -8,0 +9,0 @@ prefix?: string | undefined; |
@@ -8,3 +8,3 @@ "use strict"; | ||
const murmurhash_1 = __importDefault(require("murmurhash")); | ||
function packageNamespaceFactory(findConfig, loadConfig, { dirname, relative }, hashSalt = '', prefix = '', normalizeVersion = (semver) => semver) { | ||
function packageNamespaceFactory(findConfig, loadConfig, { dirname, relative, }, hashSalt = '', prefix = '', normalizeVersion = (semver) => semver) { | ||
return (namespace, stylesheetPath) => { | ||
@@ -11,0 +11,0 @@ const configPath = findConfig('package.json', { cwd: dirname(stylesheetPath) }); |
{ | ||
"name": "@stylable/core", | ||
"version": "3.6.2", | ||
"version": "3.6.3", | ||
"description": "CSS for Components", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
import hash from 'murmurhash'; | ||
import * as nodePath from 'path'; /* type */ | ||
import { processNamespace } from './stylable-processor'; | ||
@@ -8,3 +7,6 @@ | ||
loadConfig: (filePath: string) => object, | ||
{ dirname, relative }: Pick<typeof nodePath, 'relative' | 'dirname'>, | ||
{ | ||
dirname, | ||
relative, | ||
}: { dirname(path: string): string; relative(from: string, to: string): string }, | ||
hashSalt = '', | ||
@@ -11,0 +13,0 @@ prefix = '', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
671685
11539