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

@qiwi/substrate-types

Package Overview
Dependencies
Maintainers
5
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qiwi/substrate-types - npm Package Compare versions

Comparing version 1.27.0 to 1.27.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## @qiwi/substrate-types [1.27.1](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.27.0...@qiwi/substrate-types@1.27.1) (2020-02-28)
### Bug Fixes
* replace synthetic enum with native ([ebe9cbf](https://github.com/qiwi/substrate/commit/ebe9cbf08d53ad23abd1bb81d322816c1d963d40))
# @qiwi/substrate-types [1.27.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.26.0...@qiwi/substrate-types@1.27.0) (2020-02-28)

@@ -2,0 +9,0 @@

2

package.json
{
"name": "@qiwi/substrate-types",
"version": "1.27.0",
"version": "1.27.1",
"main": "target/es5/index.js",

@@ -5,0 +5,0 @@ "source": "target/ts/index.ts",

/** @module @qiwi/substrate-types */
/** */
import { enumType } from './helpers';
import { LogLevel } from './ILogger';
export declare const EnvironmentProfile: {
CI: "ci";
DEV: "development";
TEST: "testing";
PROD: "prod";
STAGE: "staging";
};
export declare type EnvironmentProfile = enumType<typeof EnvironmentProfile>;
export declare enum EnvironmentProfile {
CI = "ci",
DEV = "development",
TEST = "testing",
PROD = "prod",
STAGE = "staging"
}
export interface IClientEventMeta {

@@ -14,0 +12,0 @@ appName: string;

@@ -5,10 +5,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var helpers_1 = require("./helpers");
exports.EnvironmentProfile = helpers_1.mkenum({
CI: 'ci',
DEV: 'development',
TEST: 'testing',
PROD: 'prod',
STAGE: 'staging'
});
var EnvironmentProfile;
(function (EnvironmentProfile) {
EnvironmentProfile["CI"] = "ci";
EnvironmentProfile["DEV"] = "development";
EnvironmentProfile["TEST"] = "testing";
EnvironmentProfile["PROD"] = "prod";
EnvironmentProfile["STAGE"] = "staging";
})(EnvironmentProfile = exports.EnvironmentProfile || (exports.EnvironmentProfile = {}));
//# sourceMappingURL=IClientEventDto.js.map
/** @module @qiwi/substrate-types */
/** */
import { enumType } from './helpers';
export declare type ILoggerMethod = (...args: any[]) => void;
export declare const LogLevel: {
ERROR: "error";
WARN: "warn";
INFO: "info";
DEBUG: "debug";
TRACE: "trace";
};
export declare type LogLevel = enumType<typeof LogLevel>;
export declare enum LogLevel {
ERROR = "error",
WARN = "warn",
INFO = "info",
DEBUG = "debug",
TRACE = "trace"
}
export interface ILogger {

@@ -14,0 +12,0 @@ trace: ILoggerMethod;

@@ -5,10 +5,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var helpers_1 = require("./helpers");
exports.LogLevel = helpers_1.mkenum({
ERROR: 'error',
WARN: 'warn',
INFO: 'info',
DEBUG: 'debug',
TRACE: 'trace'
});
var LogLevel;
(function (LogLevel) {
LogLevel["ERROR"] = "error";
LogLevel["WARN"] = "warn";
LogLevel["INFO"] = "info";
LogLevel["DEBUG"] = "debug";
LogLevel["TRACE"] = "trace";
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
//# sourceMappingURL=ILogger.js.map
/** @module @qiwi/substrate-types */
/** */
import { enumType } from './helpers';
import { LogLevel } from './ILogger';
export declare const EnvironmentProfile: {
CI: "ci";
DEV: "development";
TEST: "testing";
PROD: "prod";
STAGE: "staging";
};
export declare type EnvironmentProfile = enumType<typeof EnvironmentProfile>;
export declare enum EnvironmentProfile {
CI = "ci",
DEV = "development",
TEST = "testing",
PROD = "prod",
STAGE = "staging"
}
export interface IClientEventMeta {

@@ -14,0 +12,0 @@ appName: string;

@@ -5,10 +5,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("./helpers");
exports.EnvironmentProfile = helpers_1.mkenum({
CI: 'ci',
DEV: 'development',
TEST: 'testing',
PROD: 'prod',
STAGE: 'staging'
});
var EnvironmentProfile;
(function (EnvironmentProfile) {
EnvironmentProfile["CI"] = "ci";
EnvironmentProfile["DEV"] = "development";
EnvironmentProfile["TEST"] = "testing";
EnvironmentProfile["PROD"] = "prod";
EnvironmentProfile["STAGE"] = "staging";
})(EnvironmentProfile = exports.EnvironmentProfile || (exports.EnvironmentProfile = {}));
//# sourceMappingURL=IClientEventDto.js.map
/** @module @qiwi/substrate-types */
/** */
import { enumType } from './helpers';
export declare type ILoggerMethod = (...args: any[]) => void;
export declare const LogLevel: {
ERROR: "error";
WARN: "warn";
INFO: "info";
DEBUG: "debug";
TRACE: "trace";
};
export declare type LogLevel = enumType<typeof LogLevel>;
export declare enum LogLevel {
ERROR = "error",
WARN = "warn",
INFO = "info",
DEBUG = "debug",
TRACE = "trace"
}
export interface ILogger {

@@ -14,0 +12,0 @@ trace: ILoggerMethod;

@@ -5,10 +5,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("./helpers");
exports.LogLevel = helpers_1.mkenum({
ERROR: 'error',
WARN: 'warn',
INFO: 'info',
DEBUG: 'debug',
TRACE: 'trace'
});
var LogLevel;
(function (LogLevel) {
LogLevel["ERROR"] = "error";
LogLevel["WARN"] = "warn";
LogLevel["INFO"] = "info";
LogLevel["DEBUG"] = "debug";
LogLevel["TRACE"] = "trace";
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
//# sourceMappingURL=ILogger.js.map
/** @module @qiwi/substrate-types */
/** */
import { mkenum, enumType } from './helpers'
import { LogLevel } from './ILogger'
export const EnvironmentProfile = mkenum({
CI: 'ci',
DEV: 'development',
TEST: 'testing',
PROD: 'prod',
STAGE: 'staging'
})
export enum EnvironmentProfile {
CI = 'ci',
DEV = 'development',
TEST = 'testing',
PROD = 'prod',
STAGE = 'staging'
}
export type EnvironmentProfile = enumType<typeof EnvironmentProfile>
export interface IClientEventMeta {

@@ -18,0 +15,0 @@ appName: string

/** @module @qiwi/substrate-types */
/** */
import { mkenum, enumType } from './helpers'
export type ILoggerMethod = (...args: any[]) => void
export const LogLevel = mkenum({
ERROR: 'error',
WARN: 'warn',
INFO: 'info',
DEBUG: 'debug',
TRACE: 'trace'
})
export enum LogLevel {
ERROR = 'error',
WARN = 'warn',
INFO = 'info',
DEBUG = 'debug',
TRACE = 'trace'
}
export type LogLevel = enumType<typeof LogLevel>
export interface ILogger {

@@ -28,3 +24,4 @@ trace: ILoggerMethod,

[key: string]: any
[key: number]: any
}

@@ -9,22 +9,13 @@ declare module '@qiwi/substrate-types/target/es5/IAnyMap' {

}
declare module '@qiwi/substrate-types/target/es5/helpers' {
export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never);
export function mkenum<T extends {
[index: string]: U;
}, U extends string>(x: T): T;
export type enumType<T> = T[keyof T];
}
declare module '@qiwi/substrate-types/target/es5/ILogger' {
/** @qiwi/substrate-types */
/** */
import { enumType } from '@qiwi/substrate-types/target/es5/helpers';
export type ILoggerMethod = (...args: any[]) => void;
export const LogLevel: {
ERROR: "error";
WARN: "warn";
INFO: "info";
DEBUG: "debug";
TRACE: "trace";
};
export type LogLevel = enumType<typeof LogLevel>;
export enum LogLevel {
ERROR = "error",
WARN = "warn",
INFO = "info",
DEBUG = "debug",
TRACE = "trace"
}
export interface ILogger {

@@ -45,12 +36,10 @@ trace: ILoggerMethod;

/** */
import { enumType } from '@qiwi/substrate-types/target/es5/helpers';
import { LogLevel } from '@qiwi/substrate-types/target/es5/ILogger';
export const EnvironmentProfile: {
CI: "ci";
DEV: "development";
TEST: "testing";
PROD: "prod";
STAGE: "staging";
};
export type EnvironmentProfile = enumType<typeof EnvironmentProfile>;
export enum EnvironmentProfile {
CI = "ci",
DEV = "development",
TEST = "testing",
PROD = "prod",
STAGE = "staging"
}
export interface IClientEventMeta {

@@ -436,2 +425,9 @@ appName: string;

}
declare module '@qiwi/substrate-types/target/es5/helpers' {
export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never);
export function mkenum<T extends {
[index: string]: U;
}, U extends string>(x: T): T;
export type enumType<T> = T[keyof T];
}
declare module '@qiwi/substrate-types/target/es5/index' {

@@ -438,0 +434,0 @@ /** @qiwi/substrate-types */

@@ -20,32 +20,18 @@ /**

declare module "@qiwi/substrate-types/target/es5/helpers" {
declare export type UnionToIntersection<
U
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any;
declare export function mkenum<
T: {
[index: string]: U,
...
},
U: string
>(
x: T
): T;
declare module "@qiwi/substrate-types/target/es5/ILogger" {
/**
* @qiwi /substrate-types
*/
/**
*/
declare export type ILoggerMethod = (...args: any[]) => void;
declare export type enumType<T> = $ElementType<T, $Keys<T>>;
}
declare export var LogLevel: {|
+ERROR: "error", // "error"
+WARN: "warn", // "warn"
+INFO: "info", // "info"
+DEBUG: "debug", // "debug"
+TRACE: "trace" // "trace"
|};
declare module "@qiwi/substrate-types/target/es5/ILogger" {
import type { enumType } from "@qiwi/substrate-types/target/es5/helpers";
declare export type ILoggerMethod = (...args: any[]) => void;
declare export var LogLevel: {
ERROR: "error",
WARN: "warn",
INFO: "info",
DEBUG: "debug",
TRACE: "trace",
...
};
declare export type LogLevel = enumType<typeof LogLevel>;
declare export interface ILogger {

@@ -65,15 +51,12 @@ trace: ILoggerMethod;

declare module "@qiwi/substrate-types/target/es5/IClientEventDto" {
import type { enumType } from "@qiwi/substrate-types/target/es5/helpers";
import type { LogLevel } from "@qiwi/substrate-types/target/es5/ILogger";
declare export var EnvironmentProfile: {
CI: "ci",
DEV: "development",
TEST: "testing",
PROD: "prod",
STAGE: "staging",
...
};
declare export type EnvironmentProfile = enumType<typeof EnvironmentProfile>;
declare export var EnvironmentProfile: {|
+CI: "ci", // "ci"
+DEV: "development", // "development"
+TEST: "testing", // "testing"
+PROD: "prod", // "prod"
+STAGE: "staging" // "staging"
|};
declare export interface IClientEventMeta {

@@ -85,3 +68,3 @@ appName: string;

appConfig?: { [key: string]: any, ... };
envProfile: EnvironmentProfile;
envProfile: $Values<typeof EnvironmentProfile>;
deviceInfo?: { [key: string]: any, ... };

@@ -708,2 +691,19 @@ }

declare module "@qiwi/substrate-types/target/es5/helpers" {
declare export type UnionToIntersection<
U
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any;
declare export function mkenum<
T: {
[index: string]: U,
...
},
U: string
>(
x: T
): T;
declare export type enumType<T> = $ElementType<T, $Keys<T>>;
}
declare module "@qiwi/substrate-types/target/es5/index" {

@@ -710,0 +710,0 @@ declare export * from "@qiwi/substrate-types/target/es5/export"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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