Sha256: fdb9e46fe7e7db9710738109a83edcde0da389ac508529f58db88953d10d285d

Contents?: true

Size: 573 Bytes

Versions: 117

Compression:

Stored size: 573 Bytes

Contents

'use strict';

var Type = require('../../type');

function resolveJavascriptUndefined() {
  return true;
}

function constructJavascriptUndefined() {
  /*eslint-disable no-undefined*/
  return undefined;
}

function representJavascriptUndefined() {
  return '';
}

function isUndefined(object) {
  return typeof object === 'undefined';
}

module.exports = new Type('tag:yaml.org,2002:js/undefined', {
  kind: 'scalar',
  resolve: resolveJavascriptUndefined,
  construct: constructJavascriptUndefined,
  predicate: isUndefined,
  represent: representJavascriptUndefined
});

Version data entries

117 entries across 102 versions & 17 rubygems

Version Path
govuk_publishing_components-16.17.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
blsk-sevcore-0.0.2 blsk_old/bluesky-doc/bluesky-doc/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
optimacms-0.4.3 spec/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
optimacms-0.4.3 spec/dummy/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
optimacms-0.4.2 spec/dummy/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
optimacms-0.4.2 spec/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/postcss-svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
locomotivecms-3.4.0 app/javascript/node_modules/postcss-svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
locomotivecms-3.4.0 app/javascript/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
locomotivecms-3.4.0 app/javascript/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
cortex-0.1.3 spec/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
cortex-0.1.3 spec/dummy/node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
guard-sass-lint-0.1.2 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
guard-sass-lint-0.1.1 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
lanes-0.8.0 node_modules/svgo/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
lanes-0.8.0 node_modules/js-yaml/lib/js-yaml/type/js/undefined.js