🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

message-tag

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

message-tag - npm Package Compare versions

Comparing version
0.9.2
to
0.9.3
+24
dist/types/message.d.cts
import { type Config as PrettyFormatConfig } from 'pretty-format';
type MessageTag = (stringParts: TemplateStringsArray, ...substitutions: unknown[]) => string;
type CustomOptions = {
format?: Partial<PrettyFormatConfig>,
dateFormat?: string,
};
// Note: structure of the result types can be left opaque (internal structure)
export declare const raw: (value: unknown) => object;
export declare const custom: (options: CustomOptions, value: unknown) => object;
export declare const msgTag: (options: CustomOptions) => MessageTag;
declare const msg: MessageTag & {
raw: typeof raw,
custom: typeof msgTag,
};
export default msg;
import { type Config as PrettyFormatConfig } from 'pretty-format';
type MessageTag = (stringParts: TemplateStringsArray, ...substitutions: unknown[]) => string;
type CustomOptions = {
format?: Partial<PrettyFormatConfig>,
dateFormat?: string,
};
// Note: structure of the result types can be left opaque (internal structure)
export declare const raw: (value: unknown) => object;
export declare const custom: (options: CustomOptions, value: unknown) => object;
export declare const msgTag: (options: CustomOptions) => MessageTag;
declare const msg: MessageTag & {
raw: typeof raw,
custom: typeof msgTag,
};
export default msg;
+13
-6
{
"name": "message-tag",
"version": "0.9.2",
"version": "0.9.3",
"author": "mkrause",

@@ -22,13 +22,20 @@ "license": "MIT",

],
"//": "https://github.com/felixge/node-dateformat/issues/176",
"engines": {
"node": ">= 14.15"
},
"//": "https://github.com/felixge/node-dateformat/issues/176",
"type": "module",
"main": "./dist/node-cjs/message.cjs",
"types": "./dist/types/message.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/types/message.d.ts",
"import": "./dist/node-esm/message.mjs",
"require": "./dist/node-cjs/message.cjs",
"import": {
"types": "./dist/types/message.d.mts",
"default": "./dist/node-esm/message.mjs"
},
"require": {
"types": "./dist/types/message.d.cts",
"default": "./dist/node-cjs/message.cjs"
},
"default": "./dist/node-esm/message.mjs"

@@ -42,3 +49,3 @@ }

"build:esm": "BABEL_ENV=esm npm run _build -- --out-dir=dist/node-esm --out-file-extension=.mjs",
"build:types": "mkdir -p ./dist/types && cp src/message.d.ts ./dist/types",
"build:types": "mkdir -p ./dist/types && cp src/message.d.ts ./dist/types/message.d.mts && cp src/message.d.ts ./dist/types/message.d.cts",
"build": "npm run build:esm && npm run build:cjs && npm run build:types",

@@ -45,0 +52,0 @@ "test:unit": "NODE_ENV=test BABEL_ENV=cjs mocha --require @babel/register --recursive tests",

import { Config as PrettyFormatConfig } from 'pretty-format';
import { type Config as PrettyFormatConfig } from 'pretty-format';

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

import { Config as PrettyFormatConfig } from 'pretty-format';
type MessageTag = (stringParts: TemplateStringsArray, ...substitutions: unknown[]) => string;
type CustomOptions = {
format?: Partial<PrettyFormatConfig>,
dateFormat?: string,
};
// Note: structure of the result types can be left opaque (internal structure)
export declare const raw: (value: unknown) => object;
export declare const custom: (options: CustomOptions, value: unknown) => object;
export declare const msgTag: (options: CustomOptions) => MessageTag;
declare const msg: MessageTag & {
raw: typeof raw,
custom: typeof msgTag,
};
export default msg;