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
optimacms-0.1.61 spec/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.18.0 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.18.2 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.72.2 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.72.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.72.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.71.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.16.1 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.16.1 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.70.2 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.70.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.70.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.69.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.68.2 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.68.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.15.2 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.15.2 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.68.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.67.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.67.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js