@histoire/plugin-percy 0.10.7 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Histoire Screenshot with Percy for visual regression testing
2
2
 
3
- You need the [Perci CLI](https://docs.percy.io/docs/cli-overview) installed to be able to send snapshots to Percy.
3
+ You need the [Percy CLI](https://docs.percy.io/docs/cli-overview) installed to be able to send snapshots to Percy.
4
4
 
5
5
 
6
6
  ```bash
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defu } from 'defu';
2
2
  import path from 'pathe';
3
- import { fileURLToPath } from 'url';
4
- import { createRequire } from 'module';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { createRequire } from 'node:module';
5
5
  import { isPercyEnabled, fetchPercyDOM, postSnapshot } from '@percy/sdk-utils';
6
6
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
7
  const require = createRequire(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/plugin-percy",
3
- "version": "0.10.7",
3
+ "version": "0.11.1",
4
4
  "description": "Histoire plugin to take screenshots with Percy for visual regression testing",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^17.0.32",
34
- "histoire": "0.10.7",
34
+ "histoire": "0.11.1",
35
35
  "typescript": "^4.7.4"
36
36
  },
37
37
  "peerDependencies": {
38
- "histoire": "^0.10.7"
38
+ "histoire": "^0.11.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "rimraf dist && tsc -d",
package/src/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { Plugin } from 'histoire'
2
2
  import { defu } from 'defu'
3
3
  import path from 'pathe'
4
- import { fileURLToPath } from 'url'
5
- import { createRequire } from 'module'
4
+ import { fileURLToPath } from 'node:url'
5
+ import { createRequire } from 'node:module'
6
6
  import { isPercyEnabled, fetchPercyDOM, postSnapshot } from '@percy/sdk-utils'
7
7
 
8
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url))