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
disco_app-0.18.4 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.18.4 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.18.1 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.18.1 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.14.0 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.14.0 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.66.2 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.66.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.66.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.65.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.65.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.64.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.63.0 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
appmap-0.62.1 ./node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
tang-0.2.1 spec/tang_app/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js