less 3.8.0 → 3.8.1

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.
Files changed (33) hide show
  1. package/Gruntfile.js +1 -3
  2. package/dist/less.js +2352 -98
  3. package/dist/less.min.js +7 -7
  4. package/lib/less/functions/color.js +84 -41
  5. package/lib/less/index.js +1 -1
  6. package/lib/less/parser/parser.js +2 -9
  7. package/lib/less/source-map-output.js +2 -2
  8. package/lib/less/tree/color.js +58 -18
  9. package/lib/less/utils.js +12 -19
  10. package/lib/less-browser/index.js +7 -1
  11. package/package.json +5 -2
  12. package/test/browser/less.js +2352 -98
  13. package/test/css/colors.css +20 -3
  14. package/test/css/css-escapes.css +3 -0
  15. package/test/css/functions.css +4 -4
  16. package/test/less/colors.less +18 -0
  17. package/test/less/css-escapes.less +4 -0
  18. package/test/less/errors/color-func-invalid-color.txt +1 -1
  19. package/test/less/sourcemaps/custom-props.less +8 -0
  20. package/test/less-bom/colors.less +18 -0
  21. package/test/less-bom/css-escapes.less +4 -0
  22. package/test/less-bom/errors/color-func-invalid-color.txt +1 -1
  23. package/test/less-bom/sourcemaps/custom-props.less +8 -0
  24. package/test/less-test.js +26 -12
  25. package/test/sourcemaps/custom-props.json +1 -0
  26. package/test/less/errors/color-invalid-hex-code.less +0 -4
  27. package/test/less/errors/color-invalid-hex-code.txt +0 -4
  28. package/test/less/errors/color-invalid-hex-code2.less +0 -4
  29. package/test/less/errors/color-invalid-hex-code2.txt +0 -4
  30. package/test/less-bom/errors/color-invalid-hex-code.less +0 -4
  31. package/test/less-bom/errors/color-invalid-hex-code.txt +0 -4
  32. package/test/less-bom/errors/color-invalid-hex-code2.less +0 -4
  33. package/test/less-bom/errors/color-invalid-hex-code2.txt +0 -4
package/Gruntfile.js CHANGED
@@ -292,6 +292,7 @@ module.exports = function (grunt) {
292
292
  keepRunner: true,
293
293
  host: 'http://localhost:8081/',
294
294
  vendor: [
295
+ './node_modules/phantomjs-polyfill-object-assign/object-assign-polyfill.js',
295
296
  'test/browser/vendor/promise.js',
296
297
  'test/browser/jasmine-jsreporter.js',
297
298
  'test/browser/common.js',
@@ -472,9 +473,6 @@ module.exports = function (grunt) {
472
473
 
473
474
  require('jit-grunt')(grunt);
474
475
 
475
- // Actually load this plugin's task(s).
476
- grunt.loadTasks('build/tasks');
477
-
478
476
  // by default, run tests
479
477
  grunt.registerTask('default', [
480
478
  'test'