Permalink
Browse files

Fix for vendors formatting (#2)

  • Loading branch information...
jifeon authored and maZahaca committed Oct 7, 2017
1 parent 4862784 commit 4bd19ba66131123c228e6c3d7fcbf0513b6ec096
Showing with 36 additions and 241 deletions.
  1. +23 −0 lib/AbstractEnvironment.js
  2. +1 −1 package.json
  3. +1 −229 vendor/sizzle.min.js
  4. +11 −11 vendor/xhr.sniffer.js
View
@@ -77,6 +77,29 @@ class AbstractEnvironment {
removeErrback(errback) {
this._errbacks = this._errbacks.filter(e => e !== errback);
}
/**
* Inject libs which are required for parse process
*
* @protected
*/
_injectVendors() {
debug('.inject()-ing parser libs');
const filePaths = [
require.resolve('../vendor/sizzle.min.js'),
require.resolve('../vendor/xhr.sniffer.js'),
];
return this._injectFiles(filePaths);
}
/**
* @abstract
* @param {Array.<string>} filePaths
* @protected
*/
_injectFiles(filePaths) {
throw new Error('You must redefine _injectFiles method in child environment');
}
}
module.exports = AbstractEnvironment;
View
@@ -1,6 +1,6 @@
{
"private": true,
"version": "1.0.6",
"version": "1.0.8",
"name": "goose-abstract-environment",
"main": "lib/AbstractEnvironment.js",
"repository": "redco/goose-abstract-environment",
Oops, something went wrong.

0 comments on commit 4bd19ba

Please sign in to comment.