@interactjs/dev-tools
Advanced tools
Comparing version 1.10.3 to 1.10.5
@@ -7,5 +7,3 @@ /* global process, __dirname */ | ||
function fixImportSource ({ node: { source } }, { filename }) { | ||
if (shouldIgnoreImport(source)) { | ||
return | ||
} | ||
if (shouldIgnoreImport(source)) return | ||
@@ -15,7 +13,11 @@ let resolvedShort = '' | ||
try { | ||
const paths = [filename && path.dirname(filename), __dirname, process.cwd()].filter(p => !!p) | ||
const paths = [filename && path.dirname(filename), __dirname, process.cwd()].filter((p) => !!p) | ||
const resolved = require.resolve(source.value, { paths }) | ||
const resolvedWithoutScopePath = resolved.replace(/.*[\\/]@interactjs[\\/]/, '') | ||
resolvedShort = '@interactjs/' + resolved.replace(/.*\/@interactjs\//, '') | ||
resolvedShort = path | ||
.join('@interactjs', resolvedWithoutScopePath) | ||
// windows path to posix | ||
.replace(/\\/g, '/') | ||
source.value = resolvedShort.replace(/(\.js)?$/, PROD_EXT) | ||
@@ -22,0 +24,0 @@ } catch (e) {} |
{ | ||
"name": "@interactjs/dev-tools", | ||
"version": "1.10.3", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@interactjs/utils": "1.10.3" | ||
"version": "1.10.5", | ||
"peerDependencies": { | ||
"@interactjs/modifiers": "1.10.5", | ||
"@interactjs/utils": "1.10.5" | ||
}, | ||
"optionalDependencies": { | ||
"@interactjs/interact": "1.10.3" | ||
"@interactjs/interact": "1.10.5" | ||
}, | ||
@@ -17,3 +17,4 @@ "publishConfig": { | ||
"**/index.prod.js" | ||
] | ||
], | ||
"license": "MIT" | ||
} |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable no-console */ | ||
import domObjects from "../utils/domObjects.js"; | ||
@@ -21,3 +20,3 @@ import { parentNode } from "../utils/domUtils.js"; | ||
const isProduction = "development" === 'production'; // eslint-disable-next-line no-restricted-syntax | ||
const isProduction = "development" === 'production'; | ||
@@ -43,3 +42,4 @@ function install(scope, { | ||
return this.options.devTools; | ||
}; | ||
}; // scope.usePlugin(visualizer) | ||
} | ||
@@ -46,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29335
25
181
3
+ Added@interactjs/core@1.10.5(transitive)
+ Added@interactjs/interact@1.10.5(transitive)
+ Added@interactjs/modifiers@1.10.5(transitive)
+ Added@interactjs/snappers@1.10.5(transitive)
+ Added@interactjs/types@1.10.5(transitive)
+ Added@interactjs/utils@1.10.5(transitive)
- Removed@interactjs/utils@1.10.3
- Removed@interactjs/core@1.10.3(transitive)
- Removed@interactjs/interact@1.10.3(transitive)
- Removed@interactjs/types@1.10.3(transitive)
- Removed@interactjs/utils@1.10.3(transitive)