scratch-paint 2.2.33 → 2.2.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.34](https://github.com/scratchfoundation/scratch-paint/compare/v2.2.33...v2.2.34) (2024-02-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** lock file maintenance ([#2362](https://github.com/scratchfoundation/scratch-paint/issues/2362)) ([6ce81c7](https://github.com/scratchfoundation/scratch-paint/commit/6ce81c72dba499fb8ad84da521f07843a32d5830))
12
+
6
13
  ## [2.2.33](https://github.com/scratchfoundation/scratch-paint/compare/v2.2.32...v2.2.33) (2024-02-27)
7
14
 
8
15
 
@@ -19680,14 +19680,32 @@ module.exports = function (useSourceMap) {
19680
19680
  // eslint-disable-next-line func-names
19681
19681
 
19682
19682
 
19683
- list.i = function (modules, mediaQuery) {
19683
+ list.i = function (modules, mediaQuery, dedupe) {
19684
19684
  if (typeof modules === 'string') {
19685
19685
  // eslint-disable-next-line no-param-reassign
19686
19686
  modules = [[null, modules, '']];
19687
19687
  }
19688
19688
 
19689
- for (var i = 0; i < modules.length; i++) {
19690
- var item = [].concat(modules[i]);
19689
+ var alreadyImportedModules = {};
19690
+
19691
+ if (dedupe) {
19692
+ for (var i = 0; i < this.length; i++) {
19693
+ // eslint-disable-next-line prefer-destructuring
19694
+ var id = this[i][0];
19695
+
19696
+ if (id != null) {
19697
+ alreadyImportedModules[id] = true;
19698
+ }
19699
+ }
19700
+ }
19701
+
19702
+ for (var _i = 0; _i < modules.length; _i++) {
19703
+ var item = [].concat(modules[_i]);
19704
+
19705
+ if (dedupe && alreadyImportedModules[item[0]]) {
19706
+ // eslint-disable-next-line no-continue
19707
+ continue;
19708
+ }
19691
19709
 
19692
19710
  if (mediaQuery) {
19693
19711
  if (!item[2]) {
@@ -19716,7 +19734,7 @@ function cssWithMappingToString(item, useSourceMap) {
19716
19734
  if (useSourceMap && typeof btoa === 'function') {
19717
19735
  var sourceMapping = toComment(cssMapping);
19718
19736
  var sourceURLs = cssMapping.sources.map(function (source) {
19719
- return "/*# sourceURL=".concat(cssMapping.sourceRoot).concat(source, " */");
19737
+ return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
19720
19738
  });
19721
19739
  return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
19722
19740
  }