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 2.1.1 to 2.1.3

cjs/cssdocs.d.ts

1

cjs/index.d.ts

@@ -20,4 +20,5 @@ export { safeParse } from './parser';

export * from './native-reserved-lists';
export * from './cssdocs';
import * as pseudoStates from './pseudo-states';
export { pseudoStates };
//# sourceMappingURL=index.d.ts.map

@@ -42,4 +42,5 @@ "use strict";

__export(require("./native-reserved-lists"));
__export(require("./cssdocs"));
var pseudoStates = __importStar(require("./pseudo-states"));
exports.pseudoStates = pseudoStates;
//# sourceMappingURL=index.js.map

@@ -25,2 +25,3 @@ import postcss from 'postcss';

scopes: postcss.AtRule[];
simpleSelectors: Record<string, SimpleSelector>;
outputAst?: postcss.Root;

@@ -80,2 +81,6 @@ globals: Record<string, boolean>;

}
export interface SimpleSelector {
symbol: ClassSymbol | ElementSymbol;
node: postcss.Rule | postcss.Root;
}
//# sourceMappingURL=stylable-meta.d.ts.map

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

this.scopes = [];
this.simpleSelectors = {};
this.transformDiagnostics = null;

@@ -38,0 +39,0 @@ }

@@ -349,2 +349,6 @@ "use strict";

};
this.meta.simpleSelectors[name] = {
node: rule,
symbol: this.meta.elements[name]
};
}

@@ -364,3 +368,14 @@ };

};
this.meta.simpleSelectors[name] = {
node: rule,
symbol: this.meta.mappedSymbols[name]
};
}
else if (name === this.meta.root && !this.meta.simpleSelectors[name]) {
// special handling for registering "root" node comments
this.meta.simpleSelectors[name] = {
node: rule,
symbol: this.meta.classes[name]
};
}
};

@@ -367,0 +382,0 @@ StylableProcessor.prototype.addImportSymbols = function (importDef) {

@@ -557,3 +557,7 @@ "use strict";

// this is an error mode fallback
return { _kind: 'css', meta: meta, symbol: { _kind: 'element', name: '*' } };
return {
_kind: 'css',
meta: meta,
symbol: { _kind: 'element', name: '*' }
};
}

@@ -560,0 +564,0 @@ // find if the current symbol exists in the initial meta;

7

package.json
{
"name": "@stylable/core",
"version": "2.1.1",
"version": "2.1.3",
"description": "CSS for Components",

@@ -10,3 +10,3 @@ "main": "./cjs/index.js",

"build": "ts-build ./src --cjs",
"test": "mocha -r @ts-tools/node/r \"./test/**/*.spec.ts\" --watch-extensions ts",
"test": "mocha \"./test/**/*.spec.ts\"",
"start": "webpack-dev-server --hot --inline",

@@ -21,2 +21,3 @@ "prepack": "yarn build"

"is-vendor-prefixed": "^3.3.0",
"jest-docblock": "^24.3.0",
"lodash.clonedeep": "^4.5.0",

@@ -50,3 +51,3 @@ "lodash.clonedeepwith": "^4.5.0",

"license": "BSD-3-Clause",
"gitHead": "0f3682cc13ba8ba076518f8ecc21bc373a20d61e"
"gitHead": "dcc4099d179ea4fdf3adc54c325b6175ff484266"
}

@@ -25,3 +25,2 @@ # @stylable/core

## License
Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a [BSD license](./LICENSE).

@@ -30,4 +30,5 @@ export { safeParse } from './parser';

export * from './native-reserved-lists';
export * from './cssdocs';
import * as pseudoStates from './pseudo-states';
export { pseudoStates };

@@ -25,2 +25,3 @@ import postcss from 'postcss';

public scopes: postcss.AtRule[];
public simpleSelectors: Record<string, SimpleSelector>;
// Generated during transform

@@ -54,2 +55,3 @@ public outputAst?: postcss.Root;

this.scopes = [];
this.simpleSelectors = {};
this.transformDiagnostics = null;

@@ -117,1 +119,6 @@ }

}
export interface SimpleSelector {
symbol: ClassSymbol | ElementSymbol;
node: postcss.Rule | postcss.Root;
}

@@ -402,2 +402,3 @@ import hash from 'murmurhash';

}
this.meta.elements[name] = this.meta.mappedSymbols[name] = {

@@ -408,2 +409,7 @@ _kind: 'element',

};
this.meta.simpleSelectors[name] = {
node: rule,
symbol: this.meta.elements[name]
};
}

@@ -419,2 +425,3 @@ }

}
this.meta.classes[name] = this.meta.mappedSymbols[name] = {

@@ -425,2 +432,13 @@ _kind: 'class',

};
this.meta.simpleSelectors[name] = {
node: rule,
symbol: this.meta.mappedSymbols[name] as ClassSymbol
};
} else if (name === this.meta.root && !this.meta.simpleSelectors[name]) {
// special handling for registering "root" node comments
this.meta.simpleSelectors[name] = {
node: rule,
symbol: this.meta.classes[name]
};
}

@@ -427,0 +445,0 @@ }

@@ -822,3 +822,7 @@ import cloneDeep from 'lodash.clonedeep';

// this is an error mode fallback
return { _kind: 'css', meta, symbol: { _kind: 'element', name: '*' } };
return {
_kind: 'css',
meta,
symbol: { _kind: 'element', name: '*' }
};
}

@@ -825,0 +829,0 @@

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