Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81149 views
1
// JS-YAML's default schema for `load` function.
2
// It is not described in the YAML specification.
3
//
4
// This schema is based on JS-YAML's default safe schema and includes
5
// JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.
6
//
7
// Also this schema is used as default base schema at `Schema.create` function.
8
9
10
'use strict';
11
12
13
var Schema = require('../schema');
14
15
16
module.exports = Schema.DEFAULT = new Schema({
17
include: [
18
require('./default_safe')
19
],
20
explicit: [
21
require('../type/js/undefined'),
22
require('../type/js/regexp'),
23
require('../type/js/function')
24
]
25
});
26
27