Socket
Socket
Sign inDemoInstall

style-loader

Package Overview
Dependencies
Maintainers
8
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-loader - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

3

dist/runtime/singletonStyleDomAPI.js

@@ -82,3 +82,4 @@ "use strict";

var styleElement = // eslint-disable-next-line no-undef,no-use-before-define
singletonData.singleton || (singletonData.singleton = options.insertStyleElement(options));
singletonData.singleton || ( // eslint-disable-next-line no-undef,no-use-before-define
singletonData.singleton = options.insertStyleElement(options));
return {

@@ -85,0 +86,0 @@ update: function update(obj) {

@@ -6,20 +6,20 @@ "use strict";

});
exports.stringifyRequest = stringifyRequest;
exports.getExportLazyStyleCode = getExportLazyStyleCode;
exports.getExportStyleCode = getExportStyleCode;
exports.getImportInsertBySelectorCode = getImportInsertBySelectorCode;
exports.getImportInsertStyleElementCode = getImportInsertStyleElementCode;
exports.getImportInsertBySelectorCode = getImportInsertBySelectorCode;
exports.getImportIsOldIECode = getImportIsOldIECode;
exports.getImportLinkAPICode = getImportLinkAPICode;
exports.getImportLinkContentCode = getImportLinkContentCode;
exports.getImportStyleAPICode = getImportStyleAPICode;
exports.getImportStyleContentCode = getImportStyleContentCode;
exports.getImportStyleDomAPICode = getImportStyleDomAPICode;
exports.getImportStyleAPICode = getImportStyleAPICode;
exports.getImportLinkContentCode = getImportLinkContentCode;
exports.getImportLinkAPICode = getImportLinkAPICode;
exports.getInsertOptionCode = getInsertOptionCode;
exports.getLinkHmrCode = getLinkHmrCode;
exports.getSetAttributesCode = getSetAttributesCode;
exports.getStyleHmrCode = getStyleHmrCode;
exports.getLinkHmrCode = getLinkHmrCode;
exports.getdomAPI = getdomAPI;
exports.getImportIsOldIECode = getImportIsOldIECode;
exports.getStyleTagTransformFn = getStyleTagTransformFn;
exports.getExportStyleCode = getExportStyleCode;
exports.getExportLazyStyleCode = getExportLazyStyleCode;
exports.getSetAttributesCode = getSetAttributesCode;
exports.getInsertOptionCode = getInsertOptionCode;
exports.getStyleTagTransformFnCode = getStyleTagTransformFnCode;
exports.getdomAPI = getdomAPI;
exports.stringifyRequest = stringifyRequest;

@@ -40,5 +40,10 @@ var _path = _interopRequireDefault(require("path"));

return matchRelativePath.test(str);
}
} // TODO simplify for the next major release
function stringifyRequest(loaderContext, request) {
if (typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function") {
return JSON.stringify(loaderContext.utils.contextify(loaderContext.context, request));
}
const splitted = request.split("!");

@@ -45,0 +50,0 @@ const {

{
"name": "style-loader",
"version": "3.3.0",
"version": "3.3.1",
"description": "style loader module for webpack",

@@ -58,3 +58,3 @@ "license": "MIT",

"es-check": "^6.0.0",
"eslint": "^7.30.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",

@@ -65,3 +65,3 @@ "eslint-plugin-import": "^2.23.4",

"jest": "^27.0.6",
"jsdom": "^17.0.0",
"jsdom": "^18.0.0",
"lint-staged": "^11.0.1",

@@ -68,0 +68,0 @@ "memfs": "^3.2.2",

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