@podium/utils
Advanced tools
Comparing version 4.4.39 to 4.4.40
@@ -0,1 +1,9 @@ | ||
## [4.4.40](https://github.com/podium-lib/utils/compare/v4.4.39...v4.4.40) (2023-10-09) | ||
### Bug Fixes | ||
* make AssetCss and AssetJs constructable for TS ([f3f7fee](https://github.com/podium-lib/utils/commit/f3f7fee09a5f2310e087f7e022319d39a51d520f)) | ||
* mark params as optional ([51d84da](https://github.com/podium-lib/utils/commit/51d84dae08c30fe80d11d33adf4c740c572dd476)) | ||
## [4.4.39](https://github.com/podium-lib/utils/compare/v4.4.38...v4.4.39) (2023-01-04) | ||
@@ -2,0 +10,0 @@ |
@@ -9,12 +9,68 @@ import { IncomingMessage, ServerResponse } from 'http'; | ||
export type AssetCss = Pick<HTMLLinkElement, 'as' | 'crossOrigin' | 'disabled' | 'hreflang' | 'title' | 'media' | 'rel' | 'type'> & | ||
PodiumAsset; | ||
export class AssetCss | ||
implements | ||
Pick< | ||
HTMLLinkElement, | ||
'as' | 'disabled' | 'hreflang' | 'title' | 'media' | 'rel' | 'type' | ||
>, | ||
PodiumAsset | ||
{ | ||
constructor(options?: { | ||
as?: string | false | null; | ||
crossorigin?: string | null | boolean; | ||
disabled?: boolean | '' | null; | ||
hreflang?: string | false | null; | ||
title?: string | false | null; | ||
media?: string | false | null; | ||
rel?: string | false | null; | ||
type?: string | false | null; | ||
value: string | false | null; | ||
data?: Array<{ key: string; value: string }>; | ||
}); | ||
export type AssetJs = Pick<HTMLScriptElement, 'referrerPolicy' | 'crossOrigin' | 'integrity' | 'noModule' | 'async' | 'defer' | 'type'> & | ||
PodiumAsset & { | ||
data?: DOMStringMap; | ||
}; | ||
as: string; | ||
crossorigin: string | null; | ||
disabled: boolean; | ||
hreflang: string; | ||
title: string; | ||
media: string; | ||
rel: string; | ||
type: string; | ||
readonly value: string; | ||
data?: Array<{ key: string; value: string }>; | ||
toHTML(): string; | ||
} | ||
export class AssetJs | ||
implements | ||
Pick<HTMLScriptElement, 'integrity' | 'async' | 'defer' | 'type'>, | ||
PodiumAsset | ||
{ | ||
constructor(options?: { | ||
crossorigin?: string | null | boolean; | ||
type?: string | null | false; | ||
integrity?: string | null | false; | ||
referrerpolicy?: string | null | false; | ||
nomodule?: boolean | null | ''; | ||
async?: boolean | null | ''; | ||
defer?: boolean | null | ''; | ||
value: string | null; | ||
data?: Array<{ key: string; value: string }>; | ||
}); | ||
crossorigin: string | null; | ||
type: string; | ||
integrity: string; | ||
referrerpolicy: string; | ||
nomodule: boolean; | ||
async: boolean; | ||
defer: boolean; | ||
prefix?: boolean; | ||
readonly value: string; | ||
data?: Array<{ key: string; value: string }>; | ||
toHTML(): string; | ||
} | ||
export class HttpIncoming<T = { [key: string]: unknown }> { | ||
constructor(request: IncomingMessage, response: ServerResponse, params: T); | ||
constructor(request: IncomingMessage, response: ServerResponse, params?: T); | ||
@@ -21,0 +77,0 @@ development: boolean; |
{ | ||
"name": "@podium/utils", | ||
"version": "4.4.39", | ||
"version": "4.4.40", | ||
"description": "Common generic utility methods shared by @podium modules.", | ||
@@ -53,16 +53,16 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@semantic-release/changelog": "6.0.2", | ||
"@semantic-release/changelog": "6.0.3", | ||
"@semantic-release/commit-analyzer": "9.0.2", | ||
"@semantic-release/git": "10.0.1", | ||
"@semantic-release/github": "8.0.7", | ||
"@semantic-release/npm": "9.0.1", | ||
"@semantic-release/github": "8.1.0", | ||
"@semantic-release/npm": "9.0.2", | ||
"@semantic-release/release-notes-generator": "10.0.3", | ||
"benchmark": "2.1.4", | ||
"eslint": "8.31.0", | ||
"eslint": "8.50.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-config-prettier": "8.10.0", | ||
"eslint-plugin-import": "2.28.1", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"jest": "28.1.3", | ||
"prettier": "2.8.1", | ||
"prettier": "2.8.8", | ||
"semantic-release": "19.0.5" | ||
@@ -69,0 +69,0 @@ }, |
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
50962
887