Socket
Socket
Sign inDemoInstall

tap-yaml

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-yaml - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

8

lib/types/domain.js
const YAMLMap = require('yaml/dist/schema/Map').default
const parseMap = require('yaml/dist/schema/parseMap').default
const Pair = require('yaml/dist/schema/Pair').default
const domain = require('domain')

@@ -12,3 +11,3 @@ class YAMLDomain extends YAMLMap {

toJSON(_, ctx) {
return domain.create()
return require('domain').create()
}

@@ -28,3 +27,6 @@ }

module.exports = {
identify: value => value instanceof domain.Domain,
identify: value => value && typeof value === 'object' &&
value.constructor.name === 'Domain'
? value instanceof (require('domain').Domain)
: false,
tag: '!domain',

@@ -31,0 +33,0 @@ nodeClass: YAMLDomain,

@@ -27,4 +27,9 @@ const YAMLMap = require('yaml/dist/schema/Map').default

// If the user cared to provide a custom inspect, then use
// that as the source of extra properties.
const util = require('util')
const inspect = util.inspect.custom
const createNode = (schema, error, ctx) => {
const ernode = new YAMLError()
const ins = typeof error[inspect] === 'function' && error[inspect]()
for (const [key, value] of Object.entries({

@@ -34,3 +39,3 @@ name: error.name,

stack: error.stack,
...error
...(ins && typeof ins === 'object' ? ins : error)
})) {

@@ -37,0 +42,0 @@ if (key === 'domain' ||

{
"name": "tap-yaml",
"version": "0.2.0",
"version": "0.3.0",
"description": "Yaml handling for TAP parsers and generators",
"main": "index.js",
"scripts": {
"test": "tap test/*.js -J --100",
"snap": "TAP_SNAPSHOT=1 tap test/*.js -J --100",
"test": "tap test/*.js",
"snap": "tap test/*.js",
"preversion": "npm test",

@@ -29,3 +29,3 @@ "postversion": "npm publish",

"devDependencies": {
"tap": "^12.5.3"
"tap": "^13.0.0-rc.11"
},

@@ -35,3 +35,6 @@ "files": [

"lib/**/*.js"
]
],
"tap": {
"check-coverage": true
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc