New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sass-embedded

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-embedded - npm Package Compare versions

Comparing version 1.72.0 to 1.74.1

dist/lib/src/deprecations.js

5

dist/lib/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.NULL = exports.FALSE = exports.TRUE = exports.Logger = exports.info = exports.renderSync = exports.render = exports.Compiler = exports.initCompiler = exports.AsyncCompiler = exports.initAsyncCompiler = exports.NodePackageImporter = exports.compileStringAsync = exports.compileAsync = exports.compileString = exports.compile = exports.Exception = exports.types = exports.SassCalculation = exports.CalculationInterpolation = exports.CalculationOperation = exports.sassNull = exports.Value = exports.SassString = exports.SassNumber = exports.SassMixin = exports.SassMap = exports.SassFunction = exports.SassColor = exports.sassTrue = exports.sassFalse = exports.SassArgumentList = exports.SassList = void 0;
exports.NULL = exports.FALSE = exports.TRUE = exports.Logger = exports.info = exports.renderSync = exports.render = exports.Version = exports.deprecations = exports.Compiler = exports.initCompiler = exports.AsyncCompiler = exports.initAsyncCompiler = exports.NodePackageImporter = exports.compileStringAsync = exports.compileAsync = exports.compileString = exports.compile = exports.Exception = exports.types = exports.SassCalculation = exports.CalculationInterpolation = exports.CalculationOperation = exports.sassNull = exports.Value = exports.SassString = exports.SassNumber = exports.SassMixin = exports.SassMap = exports.SassFunction = exports.SassColor = exports.sassTrue = exports.sassFalse = exports.SassArgumentList = exports.SassList = void 0;
const pkg = require("../package.json");

@@ -53,2 +53,5 @@ const boolean_1 = require("./src/value/boolean");

Object.defineProperty(exports, "Compiler", { enumerable: true, get: function () { return sync_1.Compiler; } });
var deprecations_1 = require("./src/deprecations");
Object.defineProperty(exports, "deprecations", { enumerable: true, get: function () { return deprecations_1.deprecations; } });
Object.defineProperty(exports, "Version", { enumerable: true, get: function () { return deprecations_1.Version; } });
var legacy_1 = require("./src/legacy");

@@ -55,0 +58,0 @@ Object.defineProperty(exports, "render", { enumerable: true, get: function () { return legacy_1.render; } });

7

dist/lib/src/compiler-path.js

@@ -22,8 +22,3 @@ "use strict";

: process.platform;
// https://github.com/sass/embedded-host-node/issues/263
// Use windows-x64 emulation on windows-arm64
//
// TODO: Make sure to remove "arm64" from "npm/win32-x64/package.json" when
// this logic is removed once we have true windows-arm64 support.
const arch = platform === 'win32' && process.arch === 'arm64' ? 'x64' : process.arch;
const arch = process.arch;
// find for development

@@ -30,0 +25,0 @@ for (const path of ['vendor', '../../../lib/src/vendor']) {

@@ -9,2 +9,3 @@ "use strict";

const supportsColor = require("supports-color");
const deprecations_1 = require("../deprecations");
const deprotofy_span_1 = require("../deprotofy-span");

@@ -27,3 +28,3 @@ const dispatcher_1 = require("../dispatcher");

function newCompileRequest(importers, options) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e, _f, _g;
const request = new proto.InboundMessage_CompileRequest({

@@ -40,4 +41,7 @@ importers: importers.importers,

silent: (options === null || options === void 0 ? void 0 : options.logger) === logger_1.Logger.silent,
fatalDeprecation: (0, deprecations_1.getDeprecationIds)((_d = options === null || options === void 0 ? void 0 : options.fatalDeprecations) !== null && _d !== void 0 ? _d : []),
silenceDeprecation: (0, deprecations_1.getDeprecationIds)((_e = options === null || options === void 0 ? void 0 : options.silenceDeprecations) !== null && _e !== void 0 ? _e : []),
futureDeprecation: (0, deprecations_1.getDeprecationIds)((_f = options === null || options === void 0 ? void 0 : options.futureDeprecations) !== null && _f !== void 0 ? _f : []),
});
switch ((_d = options === null || options === void 0 ? void 0 : options.style) !== null && _d !== void 0 ? _d : 'expanded') {
switch ((_g = options === null || options === void 0 ? void 0 : options.style) !== null && _g !== void 0 ? _g : 'expanded') {
case 'expanded':

@@ -90,2 +94,6 @@ request.style = proto.OutputStyle.EXPANDED;

exports.newCompileStringRequest = newCompileStringRequest;
/** Type guard to check that `id` is a valid deprecation ID. */
function validDeprecationId(id) {
return !!id && id in deprecations_1.deprecations;
}
/** Handles a log event according to `options`. */

@@ -103,2 +111,5 @@ function handleLogEvent(options, event) {

formatted = (0, utils_1.removeLegacyImporter)(formatted);
const deprecationType = validDeprecationId(event.deprecationType)
? deprecations_1.deprecations[event.deprecationType]
: null;
if (event.type === proto.LogEventType.DEBUG) {

@@ -116,5 +127,5 @@ if ((_a = options === null || options === void 0 ? void 0 : options.logger) === null || _a === void 0 ? void 0 : _a.debug) {

if ((_b = options === null || options === void 0 ? void 0 : options.logger) === null || _b === void 0 ? void 0 : _b.warn) {
const params = {
deprecation: event.type === proto.LogEventType.DEPRECATION_WARNING,
};
const params = deprecationType
? { deprecation: true, deprecationType: deprecationType }
: { deprecation: false };
if (span)

@@ -121,0 +132,0 @@ params.span = span;

{
"name": "sass-embedded",
"version": "1.72.0",
"protocol-version": "2.5.0",
"compiler-version": "1.72.0",
"version": "1.74.1",
"protocol-version": "2.6.0",
"compiler-version": "1.74.1",
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",

@@ -38,18 +38,19 @@ "repository": "sass/embedded-host-node",

"optionalDependencies": {
"sass-embedded-android-arm": "1.72.0",
"sass-embedded-android-arm64": "1.72.0",
"sass-embedded-android-ia32": "1.72.0",
"sass-embedded-android-x64": "1.72.0",
"sass-embedded-darwin-arm64": "1.72.0",
"sass-embedded-darwin-x64": "1.72.0",
"sass-embedded-linux-arm": "1.72.0",
"sass-embedded-linux-arm64": "1.72.0",
"sass-embedded-linux-ia32": "1.72.0",
"sass-embedded-linux-x64": "1.72.0",
"sass-embedded-linux-musl-arm": "1.72.0",
"sass-embedded-linux-musl-arm64": "1.72.0",
"sass-embedded-linux-musl-ia32": "1.72.0",
"sass-embedded-linux-musl-x64": "1.72.0",
"sass-embedded-win32-ia32": "1.72.0",
"sass-embedded-win32-x64": "1.72.0"
"sass-embedded-android-arm": "1.74.1",
"sass-embedded-android-arm64": "1.74.1",
"sass-embedded-android-ia32": "1.74.1",
"sass-embedded-android-x64": "1.74.1",
"sass-embedded-darwin-arm64": "1.74.1",
"sass-embedded-darwin-x64": "1.74.1",
"sass-embedded-linux-arm": "1.74.1",
"sass-embedded-linux-arm64": "1.74.1",
"sass-embedded-linux-ia32": "1.74.1",
"sass-embedded-linux-x64": "1.74.1",
"sass-embedded-linux-musl-arm": "1.74.1",
"sass-embedded-linux-musl-arm64": "1.74.1",
"sass-embedded-linux-musl-ia32": "1.74.1",
"sass-embedded-linux-musl-x64": "1.74.1",
"sass-embedded-win32-arm64": "1.74.1",
"sass-embedded-win32-ia32": "1.74.1",
"sass-embedded-win32-x64": "1.74.1"
},

@@ -56,0 +57,0 @@ "dependencies": {

@@ -16,2 +16,10 @@ // This is a mirror of the JS API definitions in `spec/js-api`, but with comments

} from './compile';
export {
deprecations,
Deprecation,
Deprecations,
DeprecationOrId,
DeprecationStatus,
Version,
} from './deprecations';
export {Exception} from './exception';

@@ -18,0 +26,0 @@ export {

@@ -16,2 +16,10 @@ // This is a mirror of the JS API definitions in `spec/js-api`, but with comments

} from './compile';
export {
deprecations,
Deprecation,
Deprecations,
DeprecationOrId,
DeprecationStatus,
Version,
} from './deprecations';
export {Exception} from './exception';

@@ -18,0 +26,0 @@ export {

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

import {Deprecation} from '../deprecations';
import {SourceSpan} from './source_span';

@@ -46,2 +47,4 @@

* @param options.deprecation - Whether this is a deprecation warning.
* @param options.deprecationType - The type of deprecation this warning is
* for, if any.
* @param options.span - The location in the Sass source code that generated this

@@ -53,7 +56,9 @@ * warning.

message: string,
options: {
deprecation: boolean;
span?: SourceSpan;
stack?: string;
}
options: (
| {
deprecation: true;
deprecationType: Deprecation;
}
| {deprecation: false}
) & {span?: SourceSpan; stack?: string}
): void;

@@ -60,0 +65,0 @@

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

import {DeprecationOrId, Version} from './deprecations';
import {FileImporter, Importer, NodePackageImporter} from './importer';

@@ -126,2 +127,16 @@ import {Logger} from './logger';

/**
* A set of deprecations to treat as fatal.
*
* If a deprecation warning of any provided type is encountered during
* compilation, the compiler will error instead.
*
* If a `Version` is provided, then all deprecations that were active in that
* compiler version will be treated as fatal.
*
* @category Messages
* @compatiblity dart: "1.74.0", node: false
*/
fatalDeprecations?: (DeprecationOrId | Version)[];
/**
* Additional built-in Sass functions that are available in all stylesheets.

@@ -203,2 +218,13 @@ * This option takes an object whose keys are Sass function signatures like

/**
* A set of future deprecations to opt into early.
*
* Future deprecations passed here will be treated as active by the compiler,
* emitting warnings as necessary.
*
* @category Messages
* @compatiblity dart: "1.74.0", node: false
*/
futureDeprecations?: DeprecationOrId[];
/**
* Custom importers that control how Sass resolves loads from rules like

@@ -282,2 +308,16 @@ * [`@use`](https://sass-lang.com/documentation/at-rules/use) and

/**
* A set of active deprecations to ignore.
*
* If a deprecation warning of any provided type is encountered during
* compilation, the compiler will ignore it instead.
*
* **Heads up!** The deprecated functionality you're depending on will
* eventually break.
*
* @category Messages
* @compatiblity dart: "1.74.0", node: false
*/
silenceDeprecations?: DeprecationOrId[];
/**
* Whether or not Sass should generate a source map. If it does, the source

@@ -284,0 +324,0 @@ * map will be available as {@link CompileResult.sourceMap}.

{
"name": "sass-embedded",
"version": "1.72.0",
"protocol-version": "2.5.0",
"compiler-version": "1.72.0",
"version": "1.74.1",
"protocol-version": "2.6.0",
"compiler-version": "1.74.1",
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",

@@ -38,18 +38,19 @@ "repository": "sass/embedded-host-node",

"optionalDependencies": {
"sass-embedded-android-arm": "1.72.0",
"sass-embedded-android-arm64": "1.72.0",
"sass-embedded-android-ia32": "1.72.0",
"sass-embedded-android-x64": "1.72.0",
"sass-embedded-darwin-arm64": "1.72.0",
"sass-embedded-darwin-x64": "1.72.0",
"sass-embedded-linux-arm": "1.72.0",
"sass-embedded-linux-arm64": "1.72.0",
"sass-embedded-linux-ia32": "1.72.0",
"sass-embedded-linux-x64": "1.72.0",
"sass-embedded-linux-musl-arm": "1.72.0",
"sass-embedded-linux-musl-arm64": "1.72.0",
"sass-embedded-linux-musl-ia32": "1.72.0",
"sass-embedded-linux-musl-x64": "1.72.0",
"sass-embedded-win32-ia32": "1.72.0",
"sass-embedded-win32-x64": "1.72.0"
"sass-embedded-android-arm": "1.74.1",
"sass-embedded-android-arm64": "1.74.1",
"sass-embedded-android-ia32": "1.74.1",
"sass-embedded-android-x64": "1.74.1",
"sass-embedded-darwin-arm64": "1.74.1",
"sass-embedded-darwin-x64": "1.74.1",
"sass-embedded-linux-arm": "1.74.1",
"sass-embedded-linux-arm64": "1.74.1",
"sass-embedded-linux-ia32": "1.74.1",
"sass-embedded-linux-x64": "1.74.1",
"sass-embedded-linux-musl-arm": "1.74.1",
"sass-embedded-linux-musl-arm64": "1.74.1",
"sass-embedded-linux-musl-ia32": "1.74.1",
"sass-embedded-linux-musl-x64": "1.74.1",
"sass-embedded-win32-arm64": "1.74.1",
"sass-embedded-win32-ia32": "1.74.1",
"sass-embedded-win32-x64": "1.74.1"
},

@@ -56,0 +57,0 @@ "dependencies": {

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 too big to display

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