Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-sass

Package Overview
Dependencies
Maintainers
7
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sass - npm Package Compare versions

Comparing version 3.3.3 to 3.4.0-beta.2

src/libsass/GNUmakefile.am

14

lib/extensions.js

@@ -51,3 +51,4 @@ /*!

* Get binary name.
* If environment variable SASS_BINARY_NAME or
* If environment variable SASS_BINARY_NAME,
* .npmrc variable sass_binary_name or
* process argument --binary-name is provided,

@@ -67,2 +68,4 @@ * return it as is, otherwise make default binary

binaryName = process.env.SASS_BINARY_NAME;
} else if (process.env.npm_config_sass_binary_name) {
binaryName = process.env.npm_config_sass_binary_name;
} else if (pkg.nodeSassConfig && pkg.nodeSassConfig.binaryName) {

@@ -85,3 +88,4 @@ binaryName = pkg.nodeSassConfig.binaryName;

* The default URL can be overriden using
* the environment variable SASS_BINARY_SITE
* the environment variable SASS_BINARY_SITE,
* .npmrc variable sass_binary_site or
* or a command line option --sass-binary-site:

@@ -110,2 +114,3 @@ *

process.env.SASS_BINARY_SITE ||
process.env.npm_config_sass_binary_site ||
(pkg.nodeSassConfig && pkg.nodeSassConfig.binarySite) ||

@@ -128,3 +133,4 @@ 'https://github.com/sass/node-sass/releases/download';

* Get binary path.
* If environment variable SASS_BINARY_PATH or
* If environment variable SASS_BINARY_PATH,
* .npmrc variable sass_binary_path or
* process argument --sass-binary-path is provided,

@@ -148,2 +154,4 @@ * select it by appending binary name, otherwise

binaryPath = process.env.SASS_BINARY_PATH;
} else if (process.env.npm_config_sass_binary_path) {
binaryPath = process.env.npm_config_sass_binary_path;
} else if (pkg.nodeSassConfig && pkg.nodeSassConfig.binaryPath) {

@@ -150,0 +158,0 @@ binaryPath = pkg.nodeSassConfig.binaryPath;

{
"name": "node-sass",
"version": "3.3.3",
"libsass": "3.2.5",
"version": "3.4.0-beta.2",
"libsass": "3.3.0-beta3",
"description": "Wrapper around libsass",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -99,3 +99,3 @@ # node-sass

* importers can return error and LibSass will emit that error in repsonse. For instance:
* importers can return error and LibSass will emit that error in response. For instance:

@@ -108,3 +108,3 @@ ```javascript

* importer can be an array of functions, which will be called by libsass in the order of their occurance in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return `sass.NULL`. See [functions section](#functions--v300) for more details on Sass types.
* importer can be an array of functions, which will be called by libsass in the order of their occurrence in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return `sass.NULL`. See [functions section](#functions--v300) for more details on Sass types.

@@ -321,3 +321,3 @@ ### functions (>= v3.0.0) - _experimental_

done({
file: result.path, // only one of them is required, see section Sepcial Behaviours.
file: result.path, // only one of them is required, see section Special Behaviours.
contents: result.data

@@ -502,2 +502,3 @@ });

--include-path Path to look for imported files
--follow Follow symlinked directories
--precision The amount of precision allowed in decimal numbers

@@ -513,5 +514,27 @@ --importer Path to .js file containing custom importer

The `--source-map` option accepts a boolean value, in which case it replaces destination extension with `.css.map`. It also accepts path to `.map` file and even path to the desired directory.
The `--source-map` option accepts a boolean value, in which case it replaces destination extension with `.css.map`. It also accepts path to `.map` file and even path to the desired directory.
When compiling a directory `--source-map` can either be a boolean value or a directory.
## Binary configuration parameters
node-sass supports different configuration parameters to change settings related to the sass binary such as binary name, binary path or alternative download path. Following parameters are supported by node-sass:
Variable name | .npmrc parameter | Process argument | Value
-----------------|------------------|--------------------|------
SASS_BINARY_NAME | sass_binary_name | --sass-binary-name | path
SASS_BINARY_SITE | sass_binary_site | --sass-binary-site | URL
SASS_BINARY_PATH | sass_binary_path | --sass-binary-path | path
These parameters can be used as environment variable:
* E.g. `export SASS_BINARY_SITE=http://example.com/`
As local or global [.npmrc](https://docs.npmjs.com/misc/config) configuration file:
* E.g. `sass_binary_site=http://example.com/`
As a process argument:
* E.g. `npm install node-sass --SASS_BINARY_SITE=http://example.com/`
## Post-install Build

@@ -518,0 +541,0 @@

@@ -6,2 +6,3 @@ /*!

var fs = require('fs'),
eol = require('os').EOL,
mkdir = require('mkdirp'),

@@ -26,4 +27,9 @@ npmconf = require('npmconf'),

var reportError = function(err) {
cb(['Cannot download "', url, '": ',
typeof err.message === 'string' ? err.message : err].join(''));
cb(['Cannot download "', url, '": ', eol, eol,
typeof err.message === 'string' ? err.message : err, eol, eol,
'Hint: If github.com is not accessible in your location', eol,
' try setting a proxy via HTTP_PROXY, e.g. ', eol, eol,
' export HTTP_PROXY=http://example.com:1234',eol, eol,
'or configure npm proxy via', eol, eol,
' npm config set proxy http://example.com:8080'].join(''));
};

@@ -30,0 +36,0 @@ var successful = function(response) {

@@ -1,2 +0,2 @@

Libsass
LibSass
=======

@@ -14,3 +14,3 @@

Libsass is just a library, but if you want to RUN libsass,
LibSass is just a library, but if you want to RUN LibSass,
then go to https://github.com/sass/sassc or

@@ -27,3 +27,3 @@ https://github.com/sass/ruby-libsass or

Libsass is a C/C++ port of the Sass CSS precompiler. The original version was written in Ruby, but this version is meant for efficiency and portability.
LibSass is a C/C++ port of the Sass CSS precompiler. The original version was written in Ruby, but this version is meant for efficiency and portability.

@@ -35,8 +35,8 @@ This library strives to be light, simple, and easy to build and integrate with a variety of platforms and languages.

As you may have noticed, the libsass repo itself has
As you may have noticed, the LibSass repo itself has
no executables and no tests. Oh noes! How can you develop???
Well, luckily, SassC is the official binary wrapper for
libsass and is *always* kept in sync. SassC uses a git submodule
to include libsass. When developing libsass, its best to actually
Well, luckily, [SassC](http://github.com/sass/sassc) is the official binary wrapper for
LibSass and is *always* kept in sync. SassC uses a git submodule
to include LibSass. When developing LibSass, its best to actually
check out SassC and develop in that directory with the SassC spec

@@ -50,5 +50,5 @@ and tests there.

Since libsass is a pure library, tests are run through the [SassSpec](https://github.com/sass/sass-spec) project using the [SassC](http://github.com/sass/sassc) driver.
Since LibSass is a pure library, tests are run through the [SassSpec](https://github.com/sass/sass-spec) project using the [SassC](http://github.com/sass/sassc) driver.
To run tests against libsass while developing, you can run `./script/spec`. This will clone SassC and Sass-Spec under the project folder and then run the Sass-Spec test suite. You may want to update the clones to ensure you have the latest version.
To run tests against LibSass while developing, you can run `./script/spec`. This will clone SassC and Sass-Spec under the project folder and then run the Sass-Spec test suite. You may want to update the clones to ensure you have the latest version.

@@ -58,4 +58,4 @@ Library Usage

While libsass is a library primarily written in C++, it provides a simple
C interface which should be used by most implementers. Libsass does not do
While LibSass is a library primarily written in C++, it provides a simple
C interface which should be used by most implementers. LibSass does not do
much on its own without an implementer. This can be a command line tool, like

@@ -65,4 +65,4 @@ [sassc](https://github.com/sass/sassc) or a [binding](https://github.com/sass/libsass/wiki/Implementations)

If you want to build or interface with libsass, we recommend to check out the
wiki pages about [building libsass](https://github.com/sass/libsass/wiki/Building-Libsass) and
If you want to build or interface with LibSass, we recommend to check out the
wiki pages about [building LibSass](https://github.com/sass/libsass/wiki/building-libsass) and
the [C-API documentation](https://github.com/sass/libsass/wiki/API-Documentation).

@@ -102,2 +102,1 @@

[sass_interface.h]: sass_interface.h

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

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

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