@d-zero/csstree-scss-syntax 5.0.0-alpha.49 → 5.0.0-alpha.51

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 (2) hide show
  1. package/dist/index.js +14 -10
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -4,13 +4,16 @@ const DELIM = 9;
4
4
  const DOLLAR_SIGN = 0x00_24; // U+0024 DOLLAR SIGN ($)
5
5
  const forked = CSSTree.fork(
6
6
  // @ts-ignore
7
- function (syntax, assign) {
7
+ function (syntax) {
8
8
  // @ts-ignore
9
9
  const scope = syntax.scope;
10
10
  const getNode = scope.Value.getNode;
11
- return assign(syntax, {
12
- scope: assign(scope, {
13
- Value: assign(scope.Value, {
11
+ return {
12
+ ...syntax,
13
+ scope: {
14
+ ...scope,
15
+ Value: {
16
+ ...scope.Value,
14
17
  // @ts-ignore
15
18
  getNode: function (context) {
16
19
  // @ts-ignore
@@ -27,13 +30,14 @@ function (syntax, assign) {
27
30
  }
28
31
  return getNode.call(this, context);
29
32
  },
30
- }),
31
- }),
32
- // @ts-ignore
33
- node: assign(syntax.node, {
33
+ },
34
+ },
35
+ node: {
36
+ // @ts-ignore
37
+ ...syntax.node,
34
38
  SassVariable,
35
- }),
36
- });
39
+ },
40
+ };
37
41
  });
38
42
  export * as CSSTree from 'css-tree';
39
43
  export default {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/csstree-scss-syntax",
3
- "version": "5.0.0-alpha.49",
3
+ "version": "5.0.0-alpha.51",
4
4
  "description": "SCSS syntax processor based on csstree",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -26,7 +26,7 @@
26
26
  "build": "tsc"
27
27
  },
28
28
  "dependencies": {
29
- "css-tree": "3.0.0"
29
+ "css-tree": "3.0.1"
30
30
  },
31
- "gitHead": "62dcdf676fe295b37fbf8e8d5da9f1591a0c2b24"
31
+ "gitHead": "7952b94932b3eb9a22786a399360958323921a20"
32
32
  }