Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitrical/utils - npm Package Compare versions

Comparing version 1.3.8 to 1.3.9

14

__tests__/validation.test.js

@@ -136,4 +136,18 @@ "use strict";

});
it('object', () => {
const result = (0, validation_1.validateObject)({
obj: {
str: 'string',
num: 'number',
},
}, {
obj: {
str: 'string',
num: 1,
},
});
expect(result.length).toEqual(0);
});
});
});
//# sourceMappingURL=validation.test.js.map

@@ -219,3 +219,22 @@ import { validateObject } from '../validation'

})
it('object', () => {
const result = validateObject(
{
obj: {
str: 'string',
num: 'number',
},
},
{
obj: {
str: 'string',
num: 1,
},
}
)
expect(result.length).toEqual(0)
})
})
})

2

package.json
{
"name": "@vitrical/utils",
"version": "1.3.8",
"version": "1.3.9",
"description": "Collection of useful functions and typings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,3 +23,5 @@ export declare const objectHasProperty: (obj: unknown, property: string | number) => obj is {

}> = {
[key in keyof T]: SchemaInput | ValidateObjectOptions<T>;
[key in keyof T]: SchemaInput | ValidateObjectOptions<{
[key: string]: unknown;
}>;
};

@@ -26,0 +28,0 @@ export declare const isValidationType: (validationType: ValidationLength | ValidationArray | ValidationRegular | ValidationArrayOptional, value: unknown) => boolean;

Sorry, the diff of this file is not supported yet

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