Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

archetype

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

archetype - npm Package Compare versions

Comparing version 0.11.3 to 0.12.0

9

package.json
{
"name": "archetype",
"version": "0.11.3",
"version": "0.12.0",
"author": "Valeri Karpov <val@boosterfuels.com>",

@@ -8,9 +8,8 @@ "dependencies": {

"lodash.set": "4.x",
"mpath": "0.5.1",
"standard-error": "1.1.0"
"mpath": "0.5.1"
},
"devDependencies": {
"acquit": "1.x",
"acquit-ignore": "0.1.0",
"acquit-markdown": "0.1.0",
"acquit-ignore": "0.1.x",
"acquit-markdown": "0.1.x",
"co": "4.6.0",

@@ -17,0 +16,0 @@ "mocha": "5.x",

'use strict';
const StandardError = require('standard-error');
class CastError extends Error {

@@ -14,3 +12,3 @@ constructor() {

markError(path, error) {
const standardized = new StandardError(error.message);
const standardized = new ValidatorError(error.message);
standardized.stack = error.stack;

@@ -44,2 +42,8 @@ this.errors[path] = standardized;

class ValidatorError extends Error {
toJSON() {
return { message: this.message };
}
}
module.exports = CastError;
'use strict';
const StandardError = require('standard-error');
const ValidateError = require('./error');

@@ -5,0 +4,0 @@ const applyDefaults = require('../defaults');

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