@axa-fr/react-oidc 6.0.3 → 6.0.4

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.
Files changed (2) hide show
  1. package/bin/copy.js +3 -3
  2. package/package.json +1 -1
package/bin/copy.js CHANGED
@@ -7,17 +7,17 @@ const applyCopy=(input) => {
7
7
  const destinationPath = path.join(__dirname, input);
8
8
  if (fs.existsSync(destinationPath)) {
9
9
  const serviceworkerFilename = "OidcServiceWorker.js";
10
- const serviceWorkerDestinationPath = path.join(destinationPath, `${serviceworkerFilename}`);
10
+ const serviceWorkerDestinationPath = path.join(destinationPath, serviceworkerFilename);
11
11
  if (fs.existsSync(serviceWorkerDestinationPath)) {
12
12
  fs.unlinkSync(serviceWorkerDestinationPath);
13
13
  }
14
- fs.copyFileSync(path.join(__dirname, `..\\dist\\${serviceworkerFilename}`), serviceWorkerDestinationPath);
14
+ fs.copyFileSync(path.join(__dirname, "..", "dist", serviceworkerFilename), serviceWorkerDestinationPath);
15
15
  console.log(`File copied successfully at ${serviceWorkerDestinationPath}`);
16
16
 
17
17
  const trustedDomainsFilename = "OidcTrustedDomains.js";
18
18
  const trustedDomainsDestinationPath = path.join(destinationPath, `${trustedDomainsFilename}`);
19
19
  if(!fs.existsSync(trustedDomainsDestinationPath)){
20
- fs.copyFileSync(path.join(__dirname, `..\\dist\\${trustedDomainsFilename}`), trustedDomainsDestinationPath);
20
+ fs.copyFileSync(path.join(__dirname, "..", "dist", "trustedDomainsFilename"), trustedDomainsDestinationPath);
21
21
  console.log(`File copied successfully at ${trustedDomainsDestinationPath}`);
22
22
  }
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/react-oidc",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "jsnext:main": "dist/index.js",