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

@stylable/core

Package Overview
Dependencies
Maintainers
5
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/core - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

2

dist/src/index.d.ts

@@ -6,3 +6,3 @@ export { safeParse } from './parser';

export * from './stylable-utils';
export { CSSResolve, JSResolve, StylableResolver } from './stylable-resolver';
export { CSSResolve, JSResolve, resolverWarnings, StylableResolver } from './stylable-resolver';
export { Diagnostics, Diagnostic, DiagnosticType } from './diagnostics';

@@ -9,0 +9,0 @@ export { createMinimalFS, File, MinimalFSSetup } from './memory-minimal-fs';

@@ -23,2 +23,3 @@ "use strict";

var stylable_resolver_1 = require("./stylable-resolver");
exports.resolverWarnings = stylable_resolver_1.resolverWarnings;
exports.StylableResolver = stylable_resolver_1.StylableResolver;

@@ -25,0 +26,0 @@ var diagnostics_1 = require("./diagnostics");

@@ -5,2 +5,5 @@ "use strict";

}
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {

@@ -14,2 +17,3 @@ if (mod && mod.__esModule) return mod;

Object.defineProperty(exports, "__esModule", { value: true });
var murmurhash_1 = __importDefault(require("murmurhash"));
var postcss = __importStar(require("postcss"));

@@ -25,3 +29,2 @@ var diagnostics_1 = require("./diagnostics");

__export(require("./stylable-meta")); /* TEMP EXPORT */
var hash = require('murmurhash');
var parseNamed = stylable_value_parsers_1.SBTypesParsers[stylable_value_parsers_1.valueMapping.named];

@@ -420,3 +423,3 @@ var parseMixin = stylable_value_parsers_1.SBTypesParsers[stylable_value_parsers_1.valueMapping.mixin];

function processNamespace(namespace, source) {
return namespace + hash.v3(source); // .toString(36);
return namespace + murmurhash_1.default.v3(source, 0); // .toString(36);
}

@@ -423,0 +426,0 @@ exports.processNamespace = processNamespace;

@@ -275,9 +275,9 @@ "use strict";

else if (type === 'invalid' && node.value === '&' && current.parent) {
var origin = current.mappedSymbols[current.root];
var origin_1 = current.mappedSymbols[current.root];
var next = _this.handleClass(current, {
type: 'class',
nodes: [],
name: origin.name
}, origin.name);
originSymbol = current.classes[origin.name];
name: origin_1.name
}, origin_1.name);
originSymbol = current.classes[origin_1.name];
symbol = next.symbol;

@@ -284,0 +284,0 @@ current = next.meta;

@@ -38,3 +38,3 @@ "use strict";

this.resolveNamespace = resolveNamespace;
var _a = create_infra_structure_1.createInfrastructure(projectRoot, fileSystem, onProcess, resolveOptions), fileProcessor = _a.fileProcessor, resolvePath = _a.resolvePath;
var _a = create_infra_structure_1.createInfrastructure(projectRoot, fileSystem, onProcess, resolveOptions, this.resolveNamespace), fileProcessor = _a.fileProcessor, resolvePath = _a.resolvePath;
this.resolvePath = resolvePath;

@@ -41,0 +41,0 @@ this.fileProcessor = fileProcessor;

{
"name": "@stylable/core",
"version": "0.1.10",
"version": "0.1.11",
"description": "CSS for Components",

@@ -12,3 +12,3 @@ "main": "./dist/src/index.js",

"test": "yarn test:node",
"test:node": "mocha \"./tests/**/*.spec.ts\" --watch-extensions ts --require typescript-support",
"test:node": "mocha -r @ts-tools/node \"./tests/**/*.spec.ts\" --watch-extensions ts",
"lint": "tslint --project ./tsconfig.json",

@@ -25,12 +25,12 @@ "prepack": "yarn build"

"murmurhash": "^0.0.2",
"postcss": "^7.0.2",
"postcss": "^7.0.5",
"postcss-js": "^2.0.0",
"postcss-nested": "^4.1.0",
"postcss-safe-parser": "^4.0.1",
"postcss-selector-matches": "^3.0.1",
"postcss-value-parser": "^3.3.0",
"postcss-selector-matches": "^4.0.0",
"postcss-value-parser": "^3.3.1",
"url-regex": "^4.1.1"
},
"devDependencies": {
"@stylable/runtime": "^0.1.8"
"@stylable/runtime": "^0.1.9"
},

@@ -40,4 +40,2 @@ "files": [

"src",
"runtime.js",
"runtime.d.ts",
"test-utils.js",

@@ -56,3 +54,3 @@ "test-utils.d.ts"

"license": "BSD-3-Clause",
"gitHead": "dbb41fffb306e60269f04e2c7e78c997143977ff"
"gitHead": "9f5a12e4744c079d3e0b41add9c18025a0719357"
}

@@ -16,3 +16,3 @@ export { safeParse } from './parser';

export * from './stylable-utils';
export { CSSResolve, JSResolve, StylableResolver } from './stylable-resolver';
export { CSSResolve, JSResolve, resolverWarnings, StylableResolver } from './stylable-resolver';
export { Diagnostics, Diagnostic, DiagnosticType } from './diagnostics';

@@ -19,0 +19,0 @@ export { createMinimalFS, File, MinimalFSSetup } from './memory-minimal-fs';

@@ -0,1 +1,2 @@

import hash from 'murmurhash';
import * as postcss from 'postcss';

@@ -28,3 +29,2 @@ import { Diagnostics } from './diagnostics';

export * from './stylable-meta'; /* TEMP EXPORT */
const hash = require('murmurhash');

@@ -464,3 +464,3 @@ const parseNamed = SBTypesParsers[valueMapping.named];

export function processNamespace(namespace: string, source: string) {
return namespace + hash.v3(source); // .toString(36);
return namespace + hash.v3(source, 0); // .toString(36);
}

@@ -467,0 +467,0 @@

@@ -74,3 +74,4 @@ import { FileProcessor, MinimalFS } from './cached-process-file';

onProcess,
resolveOptions
resolveOptions,
this.resolveNamespace
);

@@ -77,0 +78,0 @@ this.resolvePath = resolvePath;

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

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

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

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