less 3.12.0 → 3.12.2

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/Gruntfile.js CHANGED
@@ -190,9 +190,10 @@ module.exports = function(grunt) {
190
190
  // Handle async / await in Rollup build for tests
191
191
  // Remove this when Node 6 is no longer supported for the build/test process
192
192
  const nodeVersion = semver.major(process.versions.node);
193
+ const tsNodeRuntime = path.resolve(path.join('node_modules', '.bin', 'ts-node'));
193
194
  let scriptRuntime = 'node';
194
195
  if (nodeVersion < 8) {
195
- scriptRuntime = path.resolve(path.join('node_modules', '.bin', 'ts-node'));
196
+ scriptRuntime = tsNodeRuntime;
196
197
  }
197
198
 
198
199
  // Project configuration.
@@ -228,7 +229,10 @@ module.exports = function(grunt) {
228
229
  command: scriptRuntime + " build/rollup.js --browser --out=./tmp/browser/less.min.js"
229
230
  },
230
231
  test: {
231
- command: "node test/index.js"
232
+ command: [
233
+ tsNodeRuntime + " test/test-es6.ts",
234
+ "node test/index.js"
235
+ ].join(' && ')
232
236
  },
233
237
  generatebrowser: {
234
238
  command: 'node test/browser/generator/generate.js'
package/dist/less.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Less - Leaner CSS v3.12.0
2
+ * Less - Leaner CSS v3.12.2
3
3
  * http://lesscss.org
4
4
  *
5
5
  * Copyright (c) 2009-2020, Alexis Sellier <self@cloudhead.net>
@@ -10594,7 +10594,7 @@
10594
10594
  * It's not clear what should / must be public and why.
10595
10595
  */
10596
10596
  var initial = {
10597
- version: [3, 12, 0],
10597
+ version: [3, 12, 2],
10598
10598
  data: data,
10599
10599
  tree: tree,
10600
10600
  Environment: environment,
@@ -10641,6 +10641,14 @@
10641
10641
  }
10642
10642
  }
10643
10643
  }
10644
+ /**
10645
+ * Some of the functions assume a `this` context of the API object,
10646
+ * which causes it to fail when wrapped for ES6 imports.
10647
+ *
10648
+ * An assumed `this` should be removed in the future.
10649
+ */
10650
+ initial.parse = initial.parse.bind(api);
10651
+ initial.render = initial.render.bind(api);
10644
10652
  return api;
10645
10653
  });
10646
10654