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

@siteimprove/alfa-refinement

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@siteimprove/alfa-refinement - npm Package Compare versions

Comparing version 0.93.8 to 0.94.0

6

CHANGELOG.md
# @siteimprove/alfa-refinement
## 0.94.0
### Minor Changes
- **Added:** `Refinement.tee` is now available. ([#1709](https://github.com/Siteimprove/alfa/pull/1709))
## 0.93.8

@@ -4,0 +10,0 @@

@@ -0,1 +1,2 @@

import type { Callback } from "@siteimprove/alfa-callback";
import type { Mapper } from "@siteimprove/alfa-mapper";

@@ -66,2 +67,7 @@ import { Predicate } from "@siteimprove/alfa-predicate";

export const equals: Equals;
interface Tee {
<T, U extends T, A extends Array<unknown> = []>(refinement: Refinement<T, U, A>, callback: Callback<T, void, [result: boolean, ...args: A]>): Refinement<T, U, A>;
<T, A extends Array<unknown> = []>(predicate: Predicate<T, A>, callback: Callback<T, void, [result: boolean, ...args: A]>): Predicate<T, A>;
}
export const tee: Tee;
export function isString(value: unknown): value is string;

@@ -68,0 +74,0 @@ export function isNumber(value: unknown): value is number;

1

dist/refinement.js

@@ -16,2 +16,3 @@ import { Predicate } from "@siteimprove/alfa-predicate";

Refinement.equals = Predicate.equals;
Refinement.tee = Predicate.tee;
function isString(value) {

@@ -18,0 +19,0 @@ return typeof value === "string";

9

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://alfa.siteimprove.com",
"version": "0.93.8",
"version": "0.94.0",
"license": "MIT",

@@ -26,7 +26,8 @@ "description": "Functionality for working with first-order type predicates",

"dependencies": {
"@siteimprove/alfa-mapper": "^0.93.8",
"@siteimprove/alfa-predicate": "^0.93.8"
"@siteimprove/alfa-callback": "^0.94.0",
"@siteimprove/alfa-mapper": "^0.94.0",
"@siteimprove/alfa-predicate": "^0.94.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.93.8"
"@siteimprove/alfa-test": "^0.94.0"
},

@@ -33,0 +34,0 @@ "publishConfig": {

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