🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@autometa/types

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@autometa/types - npm Package Compare versions

Comparing version
0.3.1
to
0.4.0
+43
dist/index.d.cts
type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
type Class<T> = {
new (...args: any): T;
};
type AbstractClass<T> = Function & {
prototype: T;
};
declare const Status: {
readonly FAILED: "FAILED";
readonly BROKEN: "BROKEN";
readonly PASSED: "PASSED";
readonly SKIPPED: "SKIPPED";
};
type StatusType = keyof typeof Status;
declare const TestModifier: {
readonly SKIP: "SKIP";
};
type ModifierType = keyof typeof TestModifier;
type TestFunction = (...args: unknown[]) => unknown;
type AnyFunction = (...args: unknown[]) => unknown;
declare const STEP_TYPE: {
readonly Context: "Context";
readonly Action: "Action";
readonly Outcome: "Outcome";
readonly Conjunction: "Conjunction";
readonly Unknown: "Unknown";
};
type StepType = keyof typeof STEP_TYPE;
declare const STEP_KEYWORD: {
readonly Given: "Given";
readonly When: "When";
readonly Then: "Then";
readonly And: "And";
readonly But: "But";
};
type StepKeyword = keyof typeof STEP_KEYWORD;
export { AbstractClass, AnyFunction, ArrayElement, Class, ModifierType, STEP_KEYWORD, STEP_TYPE, Status, StatusType, StepKeyword, StepType, TestFunction, TestModifier };
+6
-0
# Gherkin
## 0.4.0
### Minor Changes
- 554b77e: Releasing packages
## 0.3.1

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

@@ -13,5 +13,23 @@ // src/test-status.ts

};
// src/gherking.enums.ts
var STEP_TYPE = {
Context: "Context",
Action: "Action",
Outcome: "Outcome",
Conjunction: "Conjunction",
Unknown: "Unknown"
};
var STEP_KEYWORD = {
Given: "Given",
When: "When",
Then: "Then",
And: "And",
But: "But"
};
export {
STEP_KEYWORD,
STEP_TYPE,
Status,
TestModifier
};
+43
-5

@@ -1,5 +0,43 @@

export * from "./array-element";
export * from "./class";
export * from "./test-status";
export * from './test-modifiers';
export * from "./functions";
type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
type Class<T> = {
new (...args: any): T;
};
type AbstractClass<T> = Function & {
prototype: T;
};
declare const Status: {
readonly FAILED: "FAILED";
readonly BROKEN: "BROKEN";
readonly PASSED: "PASSED";
readonly SKIPPED: "SKIPPED";
};
type StatusType = keyof typeof Status;
declare const TestModifier: {
readonly SKIP: "SKIP";
};
type ModifierType = keyof typeof TestModifier;
type TestFunction = (...args: unknown[]) => unknown;
type AnyFunction = (...args: unknown[]) => unknown;
declare const STEP_TYPE: {
readonly Context: "Context";
readonly Action: "Action";
readonly Outcome: "Outcome";
readonly Conjunction: "Conjunction";
readonly Unknown: "Unknown";
};
type StepType = keyof typeof STEP_TYPE;
declare const STEP_KEYWORD: {
readonly Given: "Given";
readonly When: "When";
readonly Then: "Then";
readonly And: "And";
readonly But: "But";
};
type StepKeyword = keyof typeof STEP_KEYWORD;
export { AbstractClass, AnyFunction, ArrayElement, Class, ModifierType, STEP_KEYWORD, STEP_TYPE, Status, StatusType, StepKeyword, StepType, TestFunction, TestModifier };

@@ -23,2 +23,4 @@ "use strict";

__export(src_exports, {
STEP_KEYWORD: () => STEP_KEYWORD,
STEP_TYPE: () => STEP_TYPE,
Status: () => Status,

@@ -41,6 +43,24 @@ TestModifier: () => TestModifier

};
// src/gherking.enums.ts
var STEP_TYPE = {
Context: "Context",
Action: "Action",
Outcome: "Outcome",
Conjunction: "Conjunction",
Unknown: "Unknown"
};
var STEP_KEYWORD = {
Given: "Given",
When: "When",
Then: "Then",
And: "And",
But: "But"
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
STEP_KEYWORD,
STEP_TYPE,
Status,
TestModifier
});
+7
-13
{
"name": "@autometa/types",
"version": "0.3.1",
"version": "0.4.0",
"main": "dist/index.js",

@@ -18,16 +18,13 @@ "module": "dist/esm/index.js",

"devDependencies": {
"@cucumber/cucumber-expressions": "^16.1.2",
"@types/node": "^18.11.18",
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"eslint": "^8.37.0",
"eslint-config-custom": " *",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.3.0",
"nodemon": "^2.0.22",
"prettier": "^2.8.3",
"rimraf": "^4.1.2",
"tsup": "^6.7.0",
"typescript": "^4.9.5",
"tsconfig": "0.6.1"
"tsconfig": "0.7.0",
"tsup": "^7.2.0",
"typescript": "^4.9.5"
},

@@ -38,9 +35,6 @@ "scripts": {

"lint:fix": "eslint . --fix",
"build:js": "tsup",
"build:dts:tsc": " tsc src/index.ts --declarationDir dist --declaration --emitDeclarationOnly",
"build:dts": "pnpm build:dts:tsc",
"build": "pnpm build:js && pnpm build:dts ",
"build:watch": "tsup --watch"
"clean": "rimraf dist",
"build": "tsup"
},
"readme": "# Gherkin\n\nGherkin implementation for @autometa.\n"
}

@@ -5,3 +5,3 @@ import { defineConfig } from "tsup";

clean: true, // clean up the dist folder
// dts: true, // generate dts files
dts: true, // generate dts files
format: ["cjs", "esm"], // generate cjs and esm files

@@ -8,0 +8,0 @@ skipNodeModulesBundle: true,

> @autometa/types@0.3.1 build /home/runner/work/autometa/autometa/packages/types
> pnpm build:js && pnpm build:dts
> @autometa/types@0.3.1 build:js /home/runner/work/autometa/autometa/packages/types
> tsup
CLI Building entry: src/index.ts
CLI Using tsconfig: tsconfig.json
CLI tsup v6.7.0
CLI Using tsup config: /home/runner/work/autometa/autometa/packages/types/tsup.config.ts
CLI Target: es2020
CLI Cleaning output folder
CJS Build start
ESM Build start
CJS You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
CJS dist/index.js 1.24 KB
CJS ⚡️ Build success in 63ms
ESM dist/esm/index.js 223.00 B
ESM ⚡️ Build success in 62ms
> @autometa/types@0.3.1 build:dts /home/runner/work/autometa/autometa/packages/types
> pnpm build:dts:tsc
> @autometa/types@0.3.1 build:dts:tsc /home/runner/work/autometa/autometa/packages/types
> tsc src/index.ts --declarationDir dist --declaration --emitDeclarationOnly
> @autometa/types@0.3.1 lint /home/runner/work/autometa/autometa/packages/types
> eslint . --max-warnings 0
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
export type Class<T> = {
new (...args: any): T;
};
export type AbstractClass<T> = Function & {
prototype: T;
};
export type TestFunction = (...args: unknown[]) => unknown;
export declare const TestModifier: {
readonly SKIP: "SKIP";
};
export type ModifierType = keyof typeof TestModifier;
export declare const Status: {
readonly FAILED: "FAILED";
readonly BROKEN: "BROKEN";
readonly PASSED: "PASSED";
readonly SKIPPED: "SKIPPED";
};
export type StatusType = keyof typeof Status;