Sha256: 7d1ebc0d9929b9124997b439d1a1fd9aff8feb6bb0a1b59e977ea638944f34ba

Contents?: true

Size: 1.75 KB

Versions: 72

Compression:

Stored size: 1.75 KB

Contents

'use strict';


var loader = require('./lib/loader');
var dumper = require('./lib/dumper');


function renamed(from, to) {
  return function () {
    throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
      'Use yaml.' + to + ' instead, which is now safe by default.');
  };
}


module.exports.Type                = require('./lib/type');
module.exports.Schema              = require('./lib/schema');
module.exports.FAILSAFE_SCHEMA     = require('./lib/schema/failsafe');
module.exports.JSON_SCHEMA         = require('./lib/schema/json');
module.exports.CORE_SCHEMA         = require('./lib/schema/core');
module.exports.DEFAULT_SCHEMA      = require('./lib/schema/default');
module.exports.load                = loader.load;
module.exports.loadAll             = loader.loadAll;
module.exports.dump                = dumper.dump;
module.exports.YAMLException       = require('./lib/exception');

// Re-export all types in case user wants to create custom schema
module.exports.types = {
  binary:    require('./lib/type/binary'),
  float:     require('./lib/type/float'),
  map:       require('./lib/type/map'),
  null:      require('./lib/type/null'),
  pairs:     require('./lib/type/pairs'),
  set:       require('./lib/type/set'),
  timestamp: require('./lib/type/timestamp'),
  bool:      require('./lib/type/bool'),
  int:       require('./lib/type/int'),
  merge:     require('./lib/type/merge'),
  omap:      require('./lib/type/omap'),
  seq:       require('./lib/type/seq'),
  str:       require('./lib/type/str')
};

// Removed functions from JS-YAML 3.0.x
module.exports.safeLoad            = renamed('safeLoad', 'load');
module.exports.safeLoadAll         = renamed('safeLoadAll', 'loadAll');
module.exports.safeDump            = renamed('safeDump', 'dump');

Version data entries

72 entries across 71 versions & 5 rubygems

Version Path
fattureincloud_ruby_sdk-2.1.1 scripts/node_modules/js-yaml/index.js
immosquare-cleaner-0.1.51 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.50 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.49 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.48 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.47 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.46 node_modules/js-yaml/index.js
pcp-server-ruby-sdk-0.0.6 node_modules/js-yaml/index.js
pcp-server-ruby-sdk-0.1.0 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.45 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.44 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.43 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.42 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.41 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.40 node_modules/js-yaml/index.js
fattureincloud_ruby_sdk-2.1.0 scripts/node_modules/js-yaml/index.js
immosquare-cleaner-0.1.39 node_modules/js-yaml/index.js
immosquare-cleaner-0.1.38 node_modules/js-yaml/index.js
decidim-0.26.10 packages/webpacker/node_modules/js-yaml/index.js
immosquare-cleaner-0.1.32 node_modules/js-yaml/index.js