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

@aomex/core

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/core - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

22

CHANGELOG.md

@@ -6,2 +6,24 @@ # Change Log

# 3.0.0 (2024-08-10)
### Bug Fixes
* **core:** rule.allOf返回了联合类型 ([fff9edf](https://github.com/aomex/aomex/commit/fff9edf11d3da7b60b286a194e86f7ffb67c39aa))
* **core:** rule.oneOf验证器匹配超过一个规则未报错 ([a0e2fe1](https://github.com/aomex/aomex/commit/a0e2fe1e9837464ba3e7042ff12b001c2c064486))
### Features
* **core:** uuid增加6/7/8三个版本 ([d37c2b0](https://github.com/aomex/aomex/commit/d37c2b09744a747c692b8c48dd2968e1315cbfb4))
* **core:** 删除中间件链条概念 ([48d50cc](https://github.com/aomex/aomex/commit/48d50cc0dc892859b6467344f03a38c111325fc0))
* **core:** 增加allOf验证器 ([ff9df59](https://github.com/aomex/aomex/commit/ff9df5986fc13e975abc8b0a79f3b7cc61216e3c))
* **core:** 增加allOf验证器 ([d44538d](https://github.com/aomex/aomex/commit/d44538dec8db6f7fc1563e8a1f1eca417d46b50d))
* **core:** 数字验证器增加precision方法 ([946a52d](https://github.com/aomex/aomex/commit/946a52db8514ca1e0e899ec6433075ccab594c0b))
* 初始化 ([a370720](https://github.com/aomex/aomex/commit/a37072001cf19f09687623add2442236ab19d7ed))
# [2.2.0](https://github.com/aomex/aomex/compare/v2.1.0...v2.2.0) (2024-08-05)

@@ -8,0 +30,0 @@

3

dist/index.d.ts

@@ -903,3 +903,3 @@ import { OpenAPIV3 } from 'openapi-types';

declare class UuidValidator<T = string> extends BaseStringValidator<T> {
static versions: readonly ["v1", "v2", "v3", "v4", "v5"];
static versions: readonly ["v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8"];
static patterns: {

@@ -1031,2 +1031,3 @@ [key in UuidValidator.Version | 'all']: RegExp;

*/
uuid(): UuidValidator<string>;
uuid(version: UuidValidator.Version): UuidValidator<string>;

@@ -1033,0 +1034,0 @@ uuid(versions: [UuidValidator.Version, ...UuidValidator.Version[]]): UuidValidator<string>;

@@ -1400,3 +1400,3 @@ // src/i18n/i18n-message.ts

var UuidValidator = class _UuidValidator extends BaseStringValidator {
static versions = ["v1", "v2", "v3", "v4", "v5"];
static versions = ["v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8"];
static patterns = {

@@ -1408,2 +1408,5 @@ v1: createRegexp(1),

v5: createRegexp(5),
v6: createRegexp(6),
v7: createRegexp(7),
v8: createRegexp(8),
all: createRegexp("all")

@@ -1583,3 +1586,3 @@ };

uuid(versions) {
return new UuidValidator(toArray(versions));
return new UuidValidator(toArray(versions || UuidValidator.versions));
}

@@ -1586,0 +1589,0 @@ };

{
"name": "@aomex/core",
"version": "2.2.0",
"version": "3.0.0",
"description": "aomex核心库",

@@ -38,5 +38,5 @@ "type": "module",

"openapi-types": "^12.1.3",
"@aomex/internal-tools": "^2.2.0"
"@aomex/internal-tools": "^3.0.0"
},
"scripts": {}
}

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