@percy/core
Advanced tools
Comparing version 1.0.0-beta.27 to 1.0.0-beta.28
@@ -13,2 +13,4 @@ "use strict"; | ||
var _logger = _interopRequireDefault(require("@percy/logger")); | ||
var _package = _interopRequireDefault(require("../package.json")); | ||
@@ -122,2 +124,10 @@ | ||
'/percy/dom.js': () => _fs.default.promises.readFile(require.resolve('@percy/dom'), 'utf-8').then(content => [200, 'applicaton/javascript', content]), | ||
// serves the new DOM library, wrapped for compatability to `@percy/agent` | ||
'/percy-agent.js': () => _fs.default.promises.readFile(require.resolve('@percy/dom'), 'utf-8').then(content => { | ||
let wrapper = '(window.PercyAgent = class PercyAgent { snapshot(n, o) { return PercyDOM.serialize(o) } });'; | ||
_logger.default.warn('Warning: `percy-agent.js` is deprecated, please update to the latest SDK version'); | ||
return [200, 'applicaton/javascript', content.concat(wrapper)]; | ||
}), | ||
// forward snapshot requests | ||
@@ -124,0 +134,0 @@ '/percy/snapshot': ({ |
{ | ||
"name": "@percy/core", | ||
"version": "1.0.0-beta.27", | ||
"version": "1.0.0-beta.28", | ||
"license": "MIT", | ||
@@ -28,5 +28,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/client": "^1.0.0-beta.27", | ||
"@percy/dom": "^1.0.0-beta.27", | ||
"@percy/logger": "^1.0.0-beta.27", | ||
"@percy/client": "^1.0.0-beta.28", | ||
"@percy/dom": "^1.0.0-beta.28", | ||
"@percy/logger": "^1.0.0-beta.28", | ||
"node-fetch": "^2.6.1", | ||
@@ -40,3 +40,3 @@ "progress": "^2.0.3", | ||
}, | ||
"gitHead": "2974bd71303cc3bf541001dbfc5fc481266a0d2b" | ||
"gitHead": "a0b9d3f8cf254b362f2591aa1b7a603240dcdf76" | ||
} |
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
58036
1226
Updated@percy/client@^1.0.0-beta.28
Updated@percy/dom@^1.0.0-beta.28
Updated@percy/logger@^1.0.0-beta.28