Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v1.3.4 #62

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 7 files
+20 −5 CHANGELOG.md
+1 −1 LICENSE
+11 −9 README.md
+19 −1 base.sh
+7 −6 npm/prepend-scope.cjs
+28 −9 start.sh
+13 −4 submit.sh
14 changes: 14 additions & 0 deletions Changes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Changelog

The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased


### [1.3.4] - 2024-04-05

- populate [files] in package.json
- plugin: fix comment typo
- doc(README): verbiage improvements
- dep(address-rfc2821): bump from 2.1.1 to 2.1.2 (#61)
- deps: bump to latest


### [1.3.3] - 2023-12-12

- deps(\*): pin versions to latest
Expand Down Expand Up @@ -199,3 +212,4 @@
[1.3.1]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.1
[1.3.2]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.2
[1.3.3]: https://github.com/haraka/test-fixtures/releases/tag/1.3.3
[1.3.4]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.4
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Fixtures for testing Haraka and plugins

# Usage

var fixtures = require('haraka-test-fixtures');
`const fixtures = require('haraka-test-fixtures');`

# Exports the following fixture types:

Expand All @@ -23,7 +23,7 @@ var fixtures = require('haraka-test-fixtures');
* transaction
* util_hmailitem

These fixtures are rough analogs of their like-named siblings in Haraka with varying levels of completeness. If there are functions necessary to enhance your ability to test, please do add them here.
These fixtures are analogs of their like-named siblings in Haraka with varying levels of completeness. If there are functions necessary to enhance your ability to test, please do add them.


[ci-img]: https://github.com/haraka/test-fixtures/actions/workflows/ci.yml/badge.svg
Expand Down
10 changes: 4 additions & 6 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,15 @@ class Plugin {
}

_get_plugin_path (name) {
const plugin = this;

plugin.hasPackageJson = false;
if (!name) name = plugin.name;
this.hasPackageJson = false;
if (!name) name = this.name;

const paths = [];
if (path.basename(__dirname) === 'lib'
&& path.basename(path.dirname(__dirname)) === 'haraka-test-fixtures'
&& path.basename(path.dirname(path.dirname(__dirname))) === 'node_modules') {
// __dirname ends with node_modules/haraka-text-fixtures/lib
// __dirname ends with node_modules/haraka-test-fixtures/lib

/*eslint no-global-assign: ["error", {"exceptions": ["__dirname"]}] */
/*eslint no-native-reassign: ["error", {"exceptions": ["__dirname"]}] */
Expand Down Expand Up @@ -132,9 +131,8 @@ class Plugin {
}

_get_code (pi_path) {
const plugin = this;

if (plugin.hasPackageJson) {
if (this.hasPackageJson) {
const ppd = path.dirname(pi_path);

// this isn't working for haraka-test-fixtures tests. Why?
Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,34 @@
"name": "haraka-test-fixtures",
"license": "MIT",
"description": "Haraka Test Fixtures",
"version": "1.3.3",
"version": "1.3.4",
"repository": {
"type": "git",
"url": "[email protected]:haraka/test-fixtures.git"
},
"main": "index.js",
"files": [ "CHANGELOG.md", "lib", "config" ],
"engines": {
"node": ">=12"
},
"dependencies": {
"address-rfc2821": "2.1.2",
"address-rfc2821": "^2.1.2",
"haraka-config": "^1.1.0",
"haraka-constants": "1.0.6",
"haraka-email-message": "~1.2.0",
"haraka-notes": "1.0.6",
"haraka-constants": "^1.0.6",
"haraka-email-message": "^1.2.1",
"haraka-notes": "^1.0.6",
"haraka-results": "^2.2.3"
},
"devDependencies": {
"eslint": "^8.55.0",
"eslint-plugin-haraka": "*",
"mocha": "^10.2.0"
"eslint-plugin-haraka": "1.0.15"
},
"bugs": {
"url": "https://github.com/haraka/test-fixtures/issues"
},
"scripts": {
"test": "npx mocha",
"lint": "npx eslint index.js lib test",
"lintfix": "npx eslint --fix index.js lib test",
"test": "npx mocha@^10",
"lint": "npx eslint@^8 index.js lib test",
"lintfix": "npx eslint@^8 --fix index.js lib test",
"versions": "npx dependency-version-checker check"
}
}
Loading