node-sass-json-functions 3.3.0 → 4.0.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.
- package/CHANGELOG.md +28 -2
- package/README.md +31 -36
- package/cjs/index.d.ts +14 -10
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +165 -146
- package/cjs/index.js.map +1 -1
- package/cjs/lib/json-to-sass.d.ts +2 -2
- package/cjs/lib/json-to-sass.d.ts.map +1 -1
- package/cjs/lib/sass-to-json.d.ts +3 -14
- package/cjs/lib/sass-to-json.d.ts.map +1 -1
- package/esm/index.d.ts +14 -10
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +147 -145
- package/esm/index.js.map +1 -1
- package/esm/lib/json-to-sass.d.ts +2 -2
- package/esm/lib/json-to-sass.d.ts.map +1 -1
- package/esm/lib/sass-to-json.d.ts +3 -14
- package/esm/lib/sass-to-json.d.ts.map +1 -1
- package/package.json +20 -17
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
export default getJsonValueFromSassValue;
|
|
2
|
-
export type Options = {
|
|
3
|
-
/**
|
|
4
|
-
* Number of digits after the decimal.
|
|
5
|
-
*/
|
|
6
|
-
precision: number;
|
|
7
|
-
};
|
|
8
2
|
export type JsonValue = import('../index').JsonValue;
|
|
9
3
|
export type JsonObject = import('../index').JsonObject;
|
|
10
4
|
export type JsonArray = import('../index').JsonArray;
|
|
11
|
-
/**
|
|
12
|
-
* @typedef {object} Options
|
|
13
|
-
* @property {number} precision Number of digits after the decimal.
|
|
14
|
-
*/
|
|
15
5
|
/**
|
|
16
6
|
* @typedef {import('../index').JsonValue} JsonValue
|
|
17
7
|
* @typedef {import('../index').JsonObject} JsonObject
|
|
18
8
|
* @typedef {import('../index').JsonArray} JsonArray
|
|
19
9
|
*/
|
|
20
10
|
/**
|
|
21
|
-
* @param {sass.
|
|
22
|
-
* @param {Options} options
|
|
11
|
+
* @param {sass.Value|undefined} value
|
|
23
12
|
*/
|
|
24
|
-
declare function getJsonValueFromSassValue(value: sass.
|
|
25
|
-
import sass from "sass";
|
|
13
|
+
declare function getJsonValueFromSassValue(value: sass.Value | undefined): string | number | boolean | import("../index").JsonObject | import("../index").JsonArray | null;
|
|
14
|
+
import * as sass from "sass";
|
|
26
15
|
//# sourceMappingURL=sass-to-json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sass-to-json.d.ts","sourceRoot":"","sources":["../../lib/sass-to-json.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sass-to-json.d.ts","sourceRoot":"","sources":["../../lib/sass-to-json.js"],"names":[],"mappings":";wBAKa,OAAO,UAAU,EAAE,SAAS;yBAC5B,OAAO,UAAU,EAAE,UAAU;wBAC7B,OAAO,UAAU,EAAE,SAAS;AAHzC;;;;GAIG;AAEH;;GAEG;AACH,kDAFW,KAAK,KAAK,GAAC,SAAS,mGA+B9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-sass-json-functions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "JSON encode and decode functions for node-sass.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ivan Nikolić <niksy5@gmail.com> (http://ivannikolic.com)",
|
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
"postpublish": "GITHUB_TOKEN=$GITHUB_RELEASE_TOKEN github-release-from-changelog",
|
|
35
35
|
"prerelease": "npm run lint && npm run lint:types && npm run build && npm run module-check",
|
|
36
36
|
"release": "np --no-release-draft",
|
|
37
|
-
"test": "nyc mocha --require esm 'test/**/*.js' && nyc check-coverage",
|
|
37
|
+
"test": "BABEL_ENV=test nyc mocha --require @babel/register --require esm 'test/**/*.js' && nyc check-coverage",
|
|
38
38
|
"test:watch": "nodemon --exec npm test",
|
|
39
39
|
"version": "if [ $(git rev-parse --abbrev-ref HEAD) == 'master' ]; then sed -i '' '/\\[unreleased\\]:/d' CHANGELOG.md && version-changelog CHANGELOG.md && changelog-verify CHANGELOG.md && git add CHANGELOG.md; else echo; fi"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"immutable": "^4.0.0",
|
|
42
43
|
"is-plain-obj": "^3.0.0",
|
|
43
44
|
"parse-color": "^1.0.0",
|
|
44
45
|
"parse-css-dimension": "^1.1.0",
|
|
@@ -47,42 +48,44 @@
|
|
|
47
48
|
"shorten-css-hex": "^1.1.0"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@
|
|
51
|
+
"@babel/cli": "^7.2.3",
|
|
52
|
+
"@babel/core": "^7.2.2",
|
|
53
|
+
"@babel/preset-env": "^7.12.1",
|
|
54
|
+
"@babel/register": "^7.0.0",
|
|
55
|
+
"@rollup/plugin-babel": "^5.2.1",
|
|
56
|
+
"@types/mocha": "^9.0.0",
|
|
51
57
|
"@types/node": "^16.3.0",
|
|
52
58
|
"@types/parse-color": "^1.0.1",
|
|
59
|
+
"@types/sass-true": "^6.0.1",
|
|
60
|
+
"babel-plugin-istanbul": "^6.0.0",
|
|
53
61
|
"changelog-verify": "^1.1.2",
|
|
62
|
+
"core-js": "^2.6.5",
|
|
54
63
|
"cpy": "^8.1.2",
|
|
55
|
-
"eslint": "^
|
|
56
|
-
"eslint-config-
|
|
64
|
+
"eslint": "^8.5.0",
|
|
65
|
+
"eslint-config-nitpick": "^11.1.0",
|
|
57
66
|
"eslint-config-prettier": "^8.3.0",
|
|
58
|
-
"eslint-plugin-
|
|
59
|
-
"eslint-plugin-jsdoc": "^33.3.0",
|
|
60
|
-
"eslint-plugin-mocha": "^8.0.0",
|
|
61
|
-
"eslint-plugin-node": "^11.1.0",
|
|
62
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
63
|
-
"eslint-plugin-promise": "^5.1.0",
|
|
64
|
-
"eslint-plugin-unicorn": "^31.0.0",
|
|
67
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
65
68
|
"esm": "^3.0.51",
|
|
66
69
|
"execa": "^5.1.1",
|
|
67
70
|
"github-release-from-changelog": "^2.1.1",
|
|
68
71
|
"husky": "^4.3.0",
|
|
69
72
|
"lint-staged": "^10.4.2",
|
|
70
|
-
"mocha": "^8.
|
|
73
|
+
"mocha": "^8.4.0",
|
|
71
74
|
"nodemon": "^2.0.6",
|
|
72
|
-
"np": "^6.
|
|
75
|
+
"np": "^7.6.0",
|
|
73
76
|
"nyc": "^15.1.0",
|
|
74
77
|
"prettier": "^2.4.0",
|
|
75
78
|
"rollup": "^2.32.1",
|
|
76
79
|
"sass": "^1.47.0",
|
|
77
80
|
"sass-true": "^6.0.1",
|
|
78
|
-
"typescript": "^4.5
|
|
81
|
+
"typescript": "^4.3.5",
|
|
79
82
|
"version-changelog": "^3.1.1"
|
|
80
83
|
},
|
|
81
84
|
"peerDependencies": {
|
|
82
|
-
"sass": ">=1"
|
|
85
|
+
"sass": ">=1.45"
|
|
83
86
|
},
|
|
84
87
|
"engines": {
|
|
85
|
-
"node": ">=
|
|
88
|
+
"node": ">=12.22"
|
|
86
89
|
},
|
|
87
90
|
"keywords": [
|
|
88
91
|
"decode",
|