@phensley/plurals
Advanced tools
Comparing version 1.6.5 to 1.6.6
@@ -6,3 +6,3 @@ import { Decimal } from '@phensley/decimal'; | ||
export declare const digitCount: (w: number) => number; | ||
export declare type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
export type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
/** | ||
@@ -9,0 +9,0 @@ * Operands for use in evaluating localized plural rules: |
import { Decimal, DecimalArg } from '@phensley/decimal'; | ||
import { NumberOperands } from './operands'; | ||
import { Expr, Rule } from './types'; | ||
export declare type RuleMap = { | ||
export type RuleMap = { | ||
[x: string]: Rule[]; | ||
}; | ||
export declare type RangeMap = number | { | ||
export type RangeMap = number | { | ||
[x: number]: number; | ||
}; | ||
export declare type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
export type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
/** | ||
@@ -12,0 +12,0 @@ * Plural operations for a given language. |
@@ -1,2 +0,2 @@ | ||
export declare type RangeList = Array<number | Range>; | ||
export type RangeList = Array<number | Range>; | ||
export interface Range { | ||
@@ -12,4 +12,4 @@ [0]: number; | ||
} | ||
export declare type AndCond = Array<Expr>; | ||
export declare type OrCond = Array<AndCond>; | ||
export type AndCond = Array<Expr>; | ||
export type OrCond = Array<AndCond>; | ||
export interface Rule { | ||
@@ -19,4 +19,4 @@ [0]: number; | ||
} | ||
export declare type RuleMap = { | ||
export type RuleMap = { | ||
[x: string]: Rule[]; | ||
}; |
@@ -6,3 +6,3 @@ import { Decimal } from '@phensley/decimal'; | ||
export declare const digitCount: (w: number) => number; | ||
export declare type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
export type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
/** | ||
@@ -9,0 +9,0 @@ * Operands for use in evaluating localized plural rules: |
import { Decimal, DecimalArg } from '@phensley/decimal'; | ||
import { NumberOperands } from './operands'; | ||
import { Expr, Rule } from './types'; | ||
export declare type RuleMap = { | ||
export type RuleMap = { | ||
[x: string]: Rule[]; | ||
}; | ||
export declare type RangeMap = number | { | ||
export type RangeMap = number | { | ||
[x: number]: number; | ||
}; | ||
export declare type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
export type Operand = 'n' | 'i' | 'v' | 'w' | 'f' | 't' | 'c'; | ||
/** | ||
@@ -12,0 +12,0 @@ * Plural operations for a given language. |
@@ -1,2 +0,2 @@ | ||
export declare type RangeList = Array<number | Range>; | ||
export type RangeList = Array<number | Range>; | ||
export interface Range { | ||
@@ -12,4 +12,4 @@ [0]: number; | ||
} | ||
export declare type AndCond = Array<Expr>; | ||
export declare type OrCond = Array<AndCond>; | ||
export type AndCond = Array<Expr>; | ||
export type OrCond = Array<AndCond>; | ||
export interface Rule { | ||
@@ -19,4 +19,4 @@ [0]: number; | ||
} | ||
export declare type RuleMap = { | ||
export type RuleMap = { | ||
[x: string]: Rule[]; | ||
}; |
{ | ||
"name": "@phensley/plurals", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "Plural rules engine", | ||
@@ -23,11 +23,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/decimal": "~1.6.5", | ||
"tslib": "^2.4.0" | ||
"@phensley/decimal": "~1.6.6", | ||
"tslib": "^2.4.1" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "~7.18.5", | ||
"@types/jest": "^28.1.1", | ||
"@types/node": "^18.7.14", | ||
"@typescript-eslint/eslint-plugin": "^5.36.1", | ||
"@typescript-eslint/parser": "^5.36.1", | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "^18.11.18", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"add": "^2.0.6", | ||
@@ -37,11 +37,11 @@ "beautify-benchmark": "^0.2.4", | ||
"chalk": "4.1.2", | ||
"eslint": "^8.23.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^28.1.3", | ||
"pnpm": "^7.9.5", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^28.0.8", | ||
"typescript": "~4.8.2" | ||
"jest": "^29.4.0", | ||
"pnpm": "^7.26.0", | ||
"prettier": "^2.8.3", | ||
"rimraf": "^4.1.2", | ||
"ts-jest": "^29.0.5", | ||
"typescript": "~4.9.4" | ||
}, | ||
@@ -48,0 +48,0 @@ "jest": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259087
Updated@phensley/decimal@~1.6.6
Updatedtslib@^2.4.1