sass 1.104.0 → 1.105.0

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/sass.default.js CHANGED
@@ -25,6 +25,7 @@ export const SassFunction = _cliPkgExports.SassFunction;
25
25
  export const SassList = _cliPkgExports.SassList;
26
26
  export const SassMap = _cliPkgExports.SassMap;
27
27
  export const SassMixin = _cliPkgExports.SassMixin;
28
+ export const SassModule = _cliPkgExports.SassModule;
28
29
  export const SassNumber = _cliPkgExports.SassNumber;
29
30
  export const SassString = _cliPkgExports.SassString;
30
31
  export const Value = _cliPkgExports.Value;
package/sass.node.mjs CHANGED
@@ -19,6 +19,7 @@ export const SassFunction = cjs.SassFunction;
19
19
  export const SassList = cjs.SassList;
20
20
  export const SassMap = cjs.SassMap;
21
21
  export const SassMixin = cjs.SassMixin;
22
+ export const SassModule = cjs.SassModule;
22
23
  export const SassNumber = cjs.SassNumber;
23
24
  export const SassString = cjs.SassString;
24
25
  export const Value = cjs.Value;
@@ -127,6 +128,10 @@ export default {
127
128
  defaultExportDeprecation();
128
129
  return cjs.SassMixin;
129
130
  },
131
+ get SassModule() {
132
+ defaultExportDeprecation();
133
+ return cjs.SassModule;
134
+ },
130
135
  get SassNumber() {
131
136
  defaultExportDeprecation();
132
137
  return cjs.SassNumber;
package/types/index.d.ts CHANGED
@@ -72,6 +72,7 @@ export {
72
72
  SassList,
73
73
  SassMap,
74
74
  SassMixin,
75
+ SassModule,
75
76
  SassNumber,
76
77
  SassString,
77
78
  Value,
@@ -7,6 +7,7 @@ import {SassFunction} from './function';
7
7
  import {ListSeparator} from './list';
8
8
  import {SassMap} from './map';
9
9
  import {SassMixin} from './mixin';
10
+ import {SassModule} from './module';
10
11
  import {SassNumber} from './number';
11
12
  import {SassString} from './string';
12
13
 
@@ -44,6 +45,7 @@ export {SassFunction} from './function';
44
45
  export {SassList, ListSeparator} from './list';
45
46
  export {SassMap} from './map';
46
47
  export {SassMixin} from './mixin';
48
+ export {SassModule} from './module';
47
49
  export {SassNumber} from './number';
48
50
  export {SassString} from './string';
49
51
 
@@ -186,6 +188,14 @@ export abstract class Value implements ValueObject {
186
188
  */
187
189
  assertMixin(name?: string): SassMixin;
188
190
 
191
+ /**
192
+ * Throws if `this` isn't a {@link SassModule}.
193
+ *
194
+ * @param name - The name of the function argument `this` came from (without
195
+ * the `$`) if it came from an argument. Used for error reporting.
196
+ */
197
+ assertModule(name?: string): SassModule;
198
+
189
199
  /**
190
200
  * Throws if `this` isn't a {@link SassNumber}.
191
201
  *
@@ -0,0 +1,14 @@
1
+ import {Value} from '.';
2
+
3
+ /**
4
+ * Sass's [module type](https://sass-lang.com/documentation/values/modules).
5
+ *
6
+ * @category Custom Function
7
+ */
8
+ export class SassModule extends Value {
9
+ /**
10
+ * It is not possible to construct a Sass module outside of Sass. Attempting
11
+ * to construct one will throw an exception.
12
+ */
13
+ constructor();
14
+ }