New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

buildstamp

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildstamp - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

CHANGELOG.md

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

## [1.0.3](https://github.com/qiwi/buildstamp/compare/v1.0.2...v1.0.3) (2020-09-23)
### Bug Fixes
* fix typings ([558e02c](https://github.com/qiwi/buildstamp/commit/558e02ca41dd9ef35ac5a4062824a2567be8c0c1))
## [1.0.2](https://github.com/qiwi/buildstamp/compare/v1.0.1...v1.0.2) (2020-09-18)

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

173

flow-typed/index.flow.js

@@ -7,3 +7,23 @@ /**

declare module "buildstamp/target/es5/interfaces" {
declare module "buildstamp/target/es6" {
import type { execute } from "buildstamp/target/es6/executor";
declare export * from "buildstamp/target/es6/interfaces"
declare export { execute };
}
declare module "buildstamp/target/es6/executor" {
import type {
TStamp,
TEnv,
TStampOptions,
TStampChunk,
} from "buildstamp/target/es6/interfaces";
declare export var chunks: TStampChunk[];
declare export var execute: (options: TStampOptions, env?: TEnv) => TStamp;
}
declare module "buildstamp/target/es6/interfaces" {
declare export type TEnv = { [key: string]: any, ... };

@@ -54,72 +74,10 @@ declare export type TDockerDetails = {

declare module "buildstamp/target/es5/chunks/normalize" {
import type { TStampChunk } from "buildstamp/target/es5/interfaces";
declare module "buildstamp/target/es5" {
import type { execute } from "buildstamp/target/es5/executor";
declare export var normalizeChunk: TStampChunk;
}
declare export * from "buildstamp/target/es5/interfaces"
declare module "buildstamp/target/es5/utils" {
declare export var readFileToString: (path: string) => string;
declare export var hasTrailingSeparator: (
path: string,
sep: string
) => boolean;
declare export var formatOutput: (output: any, space: string) => string;
declare export { execute };
}
declare module "buildstamp/target/es5/chunks/git" {
import type { TStampChunk } from "buildstamp/target/es5/interfaces";
declare export type TGitStamp = {
commitId: string,
repoName: string,
repoUrl: string,
...
};
declare export type TVcsInfoCreator = (cwd?: string) => TGitStamp;
declare export type IGitStampOptions = {
git?: boolean,
...
};
declare export var getGitInfo: TVcsInfoCreator;
declare export var gitChunk: TStampChunk;
}
declare module "buildstamp/target/es5/chunks/docker" {
import type { TStampChunk } from "buildstamp/target/es5/interfaces";
declare export var dockerChunk: TStampChunk;
}
declare module "buildstamp/target/es5/generators" {
declare export var now: () => number;
}
declare module "buildstamp/target/es5/chunks/date" {
import type { TStampChunk } from "buildstamp/target/es5/interfaces";
declare export var dateChunk: TStampChunk;
}
declare module "buildstamp/target/es5/chunks/logger" {
import type { TStampChunk } from "buildstamp/target/es5/interfaces";
declare export var loggerChunk: TStampChunk;
}
declare module "buildstamp/target/es5/constants" {
declare export var defaultFilename: any; // "buildstamp.json"
declare export var defaultJsonSpace: any; // "tab"
}
declare module "buildstamp/target/es5/output/pathResolver" {
declare export var resolveFilePath: (path: string, sep: string) => string;
}
declare module "buildstamp/target/es5/chunks/writer" {
import type { TStampChunk } from "buildstamp/target/es5/interfaces";
declare export var writerChunk: TStampChunk;
}
declare module "buildstamp/target/es5/executor" {

@@ -130,48 +88,57 @@ import type {

TStampOptions,
TStampChunk,
} from "buildstamp/target/es5/interfaces";
declare export var chunks: $PropertyType<
$Exports<"./interfaces">,
"TStampChunk"
>[];
declare export var chunks: TStampChunk[];
declare export var execute: (options: TStampOptions, env?: TEnv) => TStamp;
}
declare module "buildstamp/target/es5/cli" {
declare export {};
}
declare module "buildstamp/target/es5/index" {
import type { execute } from "buildstamp/target/es5/executor";
declare export * from "buildstamp/target/es5/interfaces"
declare export { execute };
declare var _default: {
execute: (
options: $PropertyType<$Exports<"./interfaces">, "TStampOptions">,
env?: { [key: string]: any, ... }
) => $PropertyType<$Exports<"./interfaces">, "TStamp">,
declare module "buildstamp/target/es5/interfaces" {
declare export type TEnv = { [key: string]: any, ... };
declare export type TDockerDetails = {
imageTag?: string,
...
};
declare export default typeof _default;
declare export type TGitDetails = {
commitId: string,
repoName: string,
repoUrl: string,
...
};
declare export type TStamp = { [key: string]: any, ... } & {
date?: string | number,
docker?: TDockerDetails,
git?: TGitDetails,
...
};
declare export type TOutputOptions = {
path: string,
jsonSeparator?: "tab" | "space" | "double-space",
...
};
declare export type TDateOptions = {
format: "iso" | "instant",
value?: string | number,
...
};
declare export type TStampOptions = { [key: string]: any, ... } & {
date?: TDateOptions,
docker?: TDockerDetails,
git?: boolean,
out?: TOutputOptions,
...
};
declare export type TChunkContext = {
context?: TChunkContext,
stamp?: TStamp,
env?: TEnv,
options?: TStampOptions,
cwd?: string,
...
};
declare export type TStampChunk = <T: TChunkContext>(ctx: T, env?: TEnv) => T;
}
declare module "buildstamp/target/es5/chunks/index" {
declare export * from "buildstamp/target/es5/chunks/date"
declare export * from "buildstamp/target/es5/chunks/docker"
declare export * from "buildstamp/target/es5/chunks/git"
declare export * from "buildstamp/target/es5/chunks/normalize"
declare export * from "buildstamp/target/es5/chunks/logger"
declare export * from "buildstamp/target/es5/chunks/writer"
}
declare module "buildstamp" {
declare export * from "buildstamp/target/es5/index"
declare export * from "buildstamp/target/es5"
}
{
"name": "buildstamp",
"version": "1.0.2",
"version": "1.0.3",
"private": false,

@@ -11,5 +11,5 @@ "publishConfig": {

"main": "target/es5/index.js",
"types": "target/es5/index.d.ts",
"types": "typings/index.d.ts",
"typescript": {
"definition": "target/es5/index.d.ts"
"definition": "typings/index.d.ts"
},

@@ -25,3 +25,3 @@ "scripts": {

"build:ts": "cp -r src/main/ts/ target/ts/",
"build:libdef": "dts-generator --project ./ --out typings/index.d.ts --prefix buildstamp/target/es5 --name buildstamp --main buildstamp/target/es5/index --moduleResolution node && libdeffix --dts=./typings/index.d.ts --prefix=buildstamp/target/es5 && flowgen typings/index.d.ts --output-file flow-typed/index.flow.js",
"build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json",
"test:report": "yarn test && yarn push:report",

@@ -53,3 +53,3 @@ "push:report": "yarn coveralls:push",

"devDependencies": {
"@qiwi/libdefkit": "^1.1.0",
"@qiwi/libdefkit": "^2.0.1",
"@qiwi/license": "^1.1.3",

@@ -59,24 +59,24 @@ "@qiwi/semantic-release-gh-pages-plugin": "^4.0.3",

"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.0.7",
"@semantic-release/npm": "^7.0.5",
"@semantic-release/github": "^7.1.1",
"@semantic-release/npm": "^7.0.6",
"@swissquote/crafty-preset-jest": "^1.12.0",
"@types/jest": "^26.0.13",
"@types/jest": "^26.0.14",
"@types/mkdirp": "^1.0.1",
"@types/node": "^14.6.4",
"@types/node": "^14.11.2",
"@types/rimraf": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"coveralls": "^3.1.0",
"eslint": "^7.8.1",
"eslint": "^7.9.0",
"eslint-config-qiwi": "^1.7.0",
"jest": "^26.4.2",
"prettier": "^2.1.1",
"prettier": "^2.1.2",
"rimraf": "^3.0.2",
"semantic-release": "^17.1.1",
"terser": "^5.3.0",
"ts-jest": "^26.3.0",
"semantic-release": "^17.1.2",
"terser": "^5.3.2",
"ts-jest": "^26.4.0",
"tslint-config-qiwi": "^1.5.0",
"typedoc": "^0.19.1",
"typedoc": "^0.19.2",
"typedoc-plugin-external-module-name": "^4.0.3",
"typescript": "4.0.2"
"typescript": "4.0.3"
},

@@ -83,0 +83,0 @@ "dependencies": {

@@ -13,3 +13,3 @@ # buildstamp

```shell script
buildstamp --out=some/path/b.json --git --docker.imageTag=foo --date.format=iso
buildstamp --out.path=some/path/b.json --git --docker.imageTag=foo --date.format=iso
```

@@ -16,0 +16,0 @@ Output in `some/path/b.json`:

@@ -1,3 +0,3 @@

import { TStamp, TEnv, TStampOptions } from './interfaces';
export declare const chunks: import("./interfaces").TStampChunk[];
import { TStamp, TEnv, TStampOptions, TStampChunk } from './interfaces';
export declare const chunks: TStampChunk[];
export declare const execute: (options: TStampOptions, env?: TEnv) => TStamp;
import { execute } from './executor';
export * from './interfaces';
export { execute };
declare const _default: {
execute: (options: import("./interfaces").TStampOptions, env?: Record<string, any>) => import("./interfaces").TStamp;
};
export default _default;

@@ -17,2 +17,1 @@ "use strict";

__exportStar(require("./interfaces"), exports);
exports.default = { execute: executor_1.execute };

@@ -1,3 +0,3 @@

import { TStamp, TEnv, TStampOptions } from './interfaces';
export declare const chunks: import("./interfaces").TStampChunk[];
import { TStamp, TEnv, TStampOptions, TStampChunk } from './interfaces';
export declare const chunks: TStampChunk[];
export declare const execute: (options: TStampOptions, env?: TEnv) => TStamp;
import { execute } from './executor';
export * from './interfaces';
export { execute };
declare const _default: {
execute: (options: import("./interfaces").TStampOptions, env?: Record<string, any>) => import("./interfaces").TStamp;
};
export default _default;
import { execute } from './executor';
export * from './interfaces';
export { execute };
export default { execute };

@@ -7,5 +7,5 @@ import { normalizeChunk } from './chunks/normalize'

import { writerChunk } from './chunks/writer'
import { TStamp, TEnv, TStampOptions } from './interfaces'
import { TStamp, TEnv, TStampOptions, TStampChunk } from './interfaces'
export const chunks = [
export const chunks: TStampChunk[] = [
normalizeChunk,

@@ -12,0 +12,0 @@ gitChunk,

@@ -5,3 +5,1 @@ import { execute } from './executor'

export { execute }
export default { execute }

@@ -1,113 +0,110 @@

declare module 'buildstamp/target/es5/interfaces' {
export type TEnv = Record<string, any>;
export type TDockerDetails = {
imageTag?: string;
};
export type TGitDetails = {
commitId: string;
repoName: string;
repoUrl: string;
};
export type TStamp = Record<string, any> & {
date?: string | number;
docker?: TDockerDetails;
git?: TGitDetails;
};
export type TOutputOptions = {
path: string;
jsonSeparator?: 'tab' | 'space' | 'double-space';
};
export type TDateOptions = {
format: 'iso' | 'instant';
value?: string | number;
};
export type TStampOptions = Record<string, any> & {
date?: TDateOptions;
docker?: TDockerDetails;
git?: boolean;
out?: TOutputOptions;
};
export type TChunkContext = {
context?: TChunkContext;
stamp?: TStamp;
env?: TEnv;
options?: TStampOptions;
cwd?: string;
};
export type TStampChunk = <T extends TChunkContext = TChunkContext>(ctx: T, env?: TEnv) => T;
// Generated by dts-bundle v0.7.4-beta.0
declare module 'buildstamp/target/es6' {
import { execute } from 'buildstamp/target/es6/executor';
export * from 'buildstamp/target/es6/interfaces';
export { execute };
}
declare module 'buildstamp/target/es5/chunks/normalize' {
import { TStampChunk } from 'buildstamp/target/es5/interfaces';
export const normalizeChunk: TStampChunk;
declare module 'buildstamp/target/es6/executor' {
import { TStamp, TEnv, TStampOptions, TStampChunk } from 'buildstamp/target/es6/interfaces';
export const chunks: TStampChunk[];
export const execute: (options: TStampOptions, env?: TEnv) => TStamp;
}
declare module 'buildstamp/target/es5/utils' {
export const readFileToString: (path: string) => string;
export const hasTrailingSeparator: (path: string, sep: string) => boolean;
export const formatOutput: (output: any, space: string) => string;
declare module 'buildstamp/target/es6/interfaces' {
export type TEnv = Record<string, any>;
export type TDockerDetails = {
imageTag?: string;
};
export type TGitDetails = {
commitId: string;
repoName: string;
repoUrl: string;
};
export type TStamp = Record<string, any> & {
date?: string | number;
docker?: TDockerDetails;
git?: TGitDetails;
};
export type TOutputOptions = {
path: string;
jsonSeparator?: 'tab' | 'space' | 'double-space';
};
export type TDateOptions = {
format: 'iso' | 'instant';
value?: string | number;
};
export type TStampOptions = Record<string, any> & {
date?: TDateOptions;
docker?: TDockerDetails;
git?: boolean;
out?: TOutputOptions;
};
export type TChunkContext = {
context?: TChunkContext;
stamp?: TStamp;
env?: TEnv;
options?: TStampOptions;
cwd?: string;
};
export type TStampChunk = <T extends TChunkContext = TChunkContext>(ctx: T, env?: TEnv) => T;
}
declare module 'buildstamp/target/es5/chunks/git' {
import { TStampChunk } from 'buildstamp/target/es5/interfaces';
export type TGitStamp = {
commitId: string;
repoName: string;
repoUrl: string;
};
export type TVcsInfoCreator = (cwd?: string) => TGitStamp;
export type IGitStampOptions = {
git?: boolean;
};
export const getGitInfo: TVcsInfoCreator;
export const gitChunk: TStampChunk;
// Generated by dts-bundle v0.7.4-beta.0
declare module 'buildstamp/target/es5' {
import { execute } from 'buildstamp/target/es5/executor';
export * from 'buildstamp/target/es5/interfaces';
export { execute };
}
declare module 'buildstamp/target/es5/chunks/docker' {
import { TStampChunk } from 'buildstamp/target/es5/interfaces';
export const dockerChunk: TStampChunk;
}
declare module 'buildstamp/target/es5/generators' {
export const now: () => number;
}
declare module 'buildstamp/target/es5/chunks/date' {
import { TStampChunk } from 'buildstamp/target/es5/interfaces';
export const dateChunk: TStampChunk;
}
declare module 'buildstamp/target/es5/chunks/logger' {
import { TStampChunk } from 'buildstamp/target/es5/interfaces';
export const loggerChunk: TStampChunk;
}
declare module 'buildstamp/target/es5/constants' {
export const defaultFilename = "buildstamp.json";
export const defaultJsonSpace = "tab";
}
declare module 'buildstamp/target/es5/output/pathResolver' {
export const resolveFilePath: (path: string, sep: string) => string;
}
declare module 'buildstamp/target/es5/chunks/writer' {
import { TStampChunk } from 'buildstamp/target/es5/interfaces';
export const writerChunk: TStampChunk;
}
declare module 'buildstamp/target/es5/executor' {
import { TStamp, TEnv, TStampOptions } from 'buildstamp/target/es5/interfaces';
export const chunks: import("./interfaces").TStampChunk[];
export const execute: (options: TStampOptions, env?: TEnv) => TStamp;
import { TStamp, TEnv, TStampOptions, TStampChunk } from 'buildstamp/target/es5/interfaces';
export const chunks: TStampChunk[];
export const execute: (options: TStampOptions, env?: TEnv) => TStamp;
}
declare module 'buildstamp/target/es5/cli' { export {};
declare module 'buildstamp/target/es5/interfaces' {
export type TEnv = Record<string, any>;
export type TDockerDetails = {
imageTag?: string;
};
export type TGitDetails = {
commitId: string;
repoName: string;
repoUrl: string;
};
export type TStamp = Record<string, any> & {
date?: string | number;
docker?: TDockerDetails;
git?: TGitDetails;
};
export type TOutputOptions = {
path: string;
jsonSeparator?: 'tab' | 'space' | 'double-space';
};
export type TDateOptions = {
format: 'iso' | 'instant';
value?: string | number;
};
export type TStampOptions = Record<string, any> & {
date?: TDateOptions;
docker?: TDockerDetails;
git?: boolean;
out?: TOutputOptions;
};
export type TChunkContext = {
context?: TChunkContext;
stamp?: TStamp;
env?: TEnv;
options?: TStampOptions;
cwd?: string;
};
export type TStampChunk = <T extends TChunkContext = TChunkContext>(ctx: T, env?: TEnv) => T;
}
declare module 'buildstamp/target/es5/index' {
import { execute } from 'buildstamp/target/es5/executor';
export * from 'buildstamp/target/es5/interfaces';
export { execute }; const _default: {
execute: (options: import("./interfaces").TStampOptions, env?: Record<string, any>) => import("./interfaces").TStamp;
};
export default _default;
}
declare module 'buildstamp/target/es5/chunks/index' {
export * from 'buildstamp/target/es5/chunks/date';
export * from 'buildstamp/target/es5/chunks/docker';
export * from 'buildstamp/target/es5/chunks/git';
export * from 'buildstamp/target/es5/chunks/normalize';
export * from 'buildstamp/target/es5/chunks/logger';
export * from 'buildstamp/target/es5/chunks/writer';
}
declare module 'buildstamp' {
export * from 'buildstamp/target/es5/index';
/** */
export * from 'buildstamp/target/es5';
}
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