hexo-component-inferno 1.0.0 → 1.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/lib/util/yaml.js +3 -6
- package/package.json +1 -1
package/lib/util/yaml.js
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
* Custom YAML parse and stringify functions.
|
|
3
3
|
* @module util/yaml
|
|
4
4
|
*/
|
|
5
|
-
const yaml = require('js-yaml');
|
|
5
|
+
const yaml = require('js-yaml'); // output null as empty in yaml
|
|
6
6
|
|
|
7
|
-
const YamlType = require('js-yaml/lib/type'); // output null as empty in yaml
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
implicit: [new YamlType('tag:yaml.org,2002:null', {
|
|
8
|
+
const YAML_SCHEMA = yaml.DEFAULT_SCHEMA.extend({
|
|
9
|
+
implicit: [new yaml.Type('tag:yaml.org,2002:null', {
|
|
12
10
|
kind: 'scalar',
|
|
13
11
|
|
|
14
12
|
resolve(data) {
|
|
@@ -28,7 +26,6 @@ const YAML_SCHEMA = require('js-yaml/lib/schema/default').extend({
|
|
|
28
26
|
defaultStyle: 'empty'
|
|
29
27
|
})]
|
|
30
28
|
});
|
|
31
|
-
|
|
32
29
|
module.exports = {
|
|
33
30
|
/**
|
|
34
31
|
* Parse a YAML string into a JavaScript value.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hexo-component-inferno",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A collection of Inferno.js layout components and utility scripts for Hexo",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": "https://github.com/ppoffice/hexo-component-inferno",
|