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

@appliedblockchain/assert-combinators

Package Overview
Dependencies
Maintainers
27
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appliedblockchain/assert-combinators - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

5

Changelog.md
# Changelog
## [v4.1.1](../../compare/v4.1.0...v4.1.1) (2021-06-16)
* Using noImplicitAny.
* Updating changelog.
## [v4.1.0](../../compare/v4.0.0...v4.1.0) (2021-06-16)

@@ -4,0 +9,0 @@

4

object.js

@@ -8,3 +8,3 @@ "use strict";

}
for (const k of Object.keys(kvs)) {
for (const k in kvs) {
const v = kvs[k];

@@ -26,2 +26,2 @@ if (typeof v === 'function') {

exports.default = object;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib2JqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0JBQThCO0FBSTlCLE1BQU0sTUFBTSxHQUNWLENBQTRDLEdBQU0sRUFBOEMsRUFBRSxDQUNoRyxLQUFLLENBQUMsRUFBRTtJQUNOLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxJQUFJLEtBQUssS0FBSyxJQUFJLEVBQUU7UUFDL0MsTUFBTSxJQUFJLFNBQVMsQ0FBQyx3QkFBd0IsY0FBTyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQTtLQUMvRDtJQUNELEtBQUssTUFBTSxDQUFDLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNoQyxNQUFNLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDaEIsSUFBSSxPQUFPLENBQUMsS0FBSyxVQUFVLEVBQUU7WUFDM0IsSUF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m9yKGBFeHBlY3RlZCBvYmplY3QsIGdvdCAke2luc3BlY3QodmFsdWUpfS5gKVxuICAgICAgfVxuICAgICAgZm9yIChjb25zdCBrIG9mIE9iamVjdC5rZXlzKGt2cykpIHtcbiAgICAgICAgY29uc3QgdiA9IGt2c1trXVxuICAgICAgICBpZiAodHlwZW9mIHYgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgdih2YWx1ZVtrXSlcbiAgICAgICAgICB9IGNhdGNoIChlcnIpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoYFske2t9XSAke2Vyci5tZXNzYWdlfWApXG4gICAgICAgICAgfVxuICAgICAgICB9IGVsc2UgaWYgKHYgIT09IHZhbHVlW2tdKSB7XG4gICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihgRXhwZWN0ZWQgJHtpbnNwZWN0KGspfSB0byBiZSAke2luc3BlY3Qodil9LCBnb3QgJHtpbnNwZWN0KHZhbHVlW2tdKX0gaW4gJHtpbnNwZWN0KHZhbHVlKX0gb2JqZWN0LmApXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIHJldHVybiB2YWx1ZSBhcyB7IFtrIGluIGtleW9mIFRdOiBBc3NlcnRlZDxUW2tdPiB9XG4gICAgfVxuXG5leHBvcnQgZGVmYXVsdCBvYmplY3RcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib2JqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0JBQThCO0FBSTlCLE1BQU0sTUFBTSxHQUNWLENBQTRDLEdBQU0sRUFBOEMsRUFBRSxDQUNoRyxLQUFLLENBQUMsRUFBRTtJQUNOLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxJQUFJLEtBQUssS0FBSyxJQUFJLE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F06IEFzc2VydGVkPFRba10+IH1cbiAgICB9XG5cbmV4cG9ydCBkZWZhdWx0IG9iamVjdFxuIl19

@@ -11,12 +11,12 @@ import { inspect } from 'util'

}
for (const k of Object.keys(kvs)) {
for (const k in kvs) {
const v = kvs[k]
if (typeof v === 'function') {
try {
v(value[k])
v((value as Record<string, unknown>)[k])
} catch (err) {
throw new TypeError(`[${k}] ${err.message}`)
}
} else if (v !== value[k]) {
throw new TypeError(`Expected ${inspect(k)} to be ${inspect(v)}, got ${inspect(value[k])} in ${inspect(value)} object.`)
} else if (v !== (value as Record<string, unknown>)[k]) {
throw new TypeError(`Expected ${inspect(k)} to be ${inspect(v)}, got ${inspect((value as Record<string, unknown>)[k])} in ${inspect(value)} object.`)
}

@@ -23,0 +23,0 @@ }

{
"name": "@appliedblockchain/assert-combinators",
"version": "4.1.0",
"version": "4.1.1",
"description": "Assertion combinators.",

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

@@ -7,3 +7,3 @@ "use strict";

}
for (const k of Object.keys(kvs)) {
for (const k in kvs) {
if (typeof value[k] === 'undefined') {

@@ -17,2 +17,2 @@ continue;

exports.default = partial;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFydGlhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBhcnRpYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFHQSxNQUFNLE9BQU8sR0FDWCxDQUE0QyxHQUFNLEVBQStDLEVBQUUsQ0FDakcsS0FBSyxDQUFDLEVBQUU7SUFDTixJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsSUFBSSxLQUFLLElBQUksSUFBSSxFQUFFO1FBQzlDLE1BQU0sSUFBSSxTQUFTLENBQUMsa0JBQWtCLENBQUMsQ0FBQTtLQUN4QztJQUNELEtBQUssTUFBTSxDQUFDLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRT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Vycm9yKCdFeHBlY3RlZCBvYmplY3QuJylcbiAgICAgIH1cbiAgICAgIGZvciAoY29uc3QgayBpbiBrdnMpIHtcbiAgICAgICAgaWYgKHR5cGVvZiAodmFsdWUgYXMgUmVjb3JkPHN0cmluZywgdW5rbm93bj4pW2tdID09PSAndW5kZWZpbmVkJykge1xuICAgICAgICAgIGNvbnRpbnVlXG4gICAgICAgIH1cbiAgICAgICAga3ZzW2tdKCh2YWx1ZSBhcyBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPilba10pXG4gICAgICB9XG4gICAgICByZXR1cm4gdmFsdWVcbiAgICB9XG5cbmV4cG9ydCBkZWZhdWx0IHBhcnRpYWxcbiJdfQ==

@@ -10,7 +10,7 @@ import type Assert from './types/assert'

}
for (const k of Object.keys(kvs)) {
if (typeof value[k] === 'undefined') {
for (const k in kvs) {
if (typeof (value as Record<string, unknown>)[k] === 'undefined') {
continue
}
kvs[k](value[k])
kvs[k]((value as Record<string, unknown>)[k])
}

@@ -17,0 +17,0 @@ return value

{
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"noImplicitAny": false,
"noImplicitAny": true,
"noUnusedLocals": true,

@@ -6,0 +6,0 @@ "noUnusedParameters": 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