Skip to content

Commit

Permalink
Merge pull request #20 from mbland/bump-to-1.0.2-add-js-suffix
Browse files Browse the repository at this point in the history
Bump to v1.0.2, add .js extension to local imports
  • Loading branch information
mbland committed Jan 5, 2024
2 parents 597bb36 + a2def1e commit 02af877
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -4,9 +4,9 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

import BrowserPageOpener from './lib/browser'
import JsdomPageOpener from './lib/jsdom'
import { OpenedPage } from './lib/types'
import BrowserPageOpener from './lib/browser.js'
import JsdomPageOpener from './lib/jsdom.js'
import { OpenedPage } from './lib/types.js'

/**
* Enables tests to open an application's own page URLs both in the browser and
Expand Down
2 changes: 1 addition & 1 deletion lib/browser.js
Expand Up @@ -6,7 +6,7 @@
*/

import { createCoverageMap } from 'istanbul-lib-coverage'
import { OpenedPage } from './types'
import { OpenedPage } from './types.js'

/**
* Returns the window and document from a browser-opened HTML file.
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdom.js
Expand Up @@ -5,7 +5,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

import { OpenedPage } from './types'
import { OpenedPage } from './types.js'

/**
* Returns window and document objects from a jsdom-parsed HTML file.
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "test-page-opener",
"version": "1.0.1",
"version": "1.0.2",
"description": "Enables an application's tests to open its own page URLs both in the browser and in Node.js using jsdom",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 02af877

Please sign in to comment.