knockout-template-loader
Advanced tools
Comparing version 1.0.1 to 2.0.0-webpack4.1
"use strict"; | ||
var _loaderUtils = require("loader-utils"); | ||
var utils = require("loader-utils"); | ||
var _loaderUtils2 = _interopRequireDefault(_loaderUtils); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function loaderFn(source) { | ||
@@ -13,4 +9,4 @@ this.cacheable(); | ||
var sourcePart = source.replace("module.exports", "var htmlContent"); | ||
var options = _loaderUtils2.default.getLoaderConfig(this, "knockoutTemplateLoader"); | ||
var name = options.name || _loaderUtils2.default.interpolateName(this, "[name]-[ext]", {}); | ||
var options = utils.getOptions(this); | ||
var name = options.name || utils.interpolateName(this, "[name]-[ext]", {}); | ||
@@ -17,0 +13,0 @@ return ["var ko = require('knockout');", "var stringTemplateEngine = require('knockout-template-loader/lib/string-template-engine');", sourcePart, "ko.templates['" + name + "'] = htmlContent;"].join("\n"); |
{ | ||
"name": "knockout-template-loader", | ||
"version": "1.0.1", | ||
"version": "2.0.0-webpack4.1", | ||
"description": "Knockout html template loader for webpack", | ||
@@ -16,28 +16,20 @@ "main": "lib/index.js", | ||
"homepage": "https://github.com/civicsource/knockout-template-loader", | ||
"babel": { | ||
"presets": [ | ||
"es2015", | ||
"react", | ||
"stage-2" | ||
] | ||
}, | ||
"scripts": { | ||
"compile": "babel -d lib src", | ||
"prepublish": "rimraf lib && npm run compile" | ||
"compile": "rimraf lib && babel -d lib src", | ||
"prepublish": "rimraf lib && yarn run compile" | ||
}, | ||
"dependencies": { | ||
"loader-utils": "^0.2.15" | ||
"loader-utils": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.3.15", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-react": "^6.3.13", | ||
"babel-preset-stage-2": "^6.3.13", | ||
"rimraf": "^2.5.2" | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"rimraf": "^2.6.2" | ||
}, | ||
"peerDependencies": { | ||
"knockout": ">=3.3", | ||
"webpack": ">=4.0", | ||
"html-loader": ">=0.4" | ||
} | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
4
2664
4
5
9
1
1
+ Addedbig.js@5.2.2(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedloader-utils@1.4.2(transitive)
+ Addedminimist@1.2.8(transitive)
- Removedbig.js@3.2.0(transitive)
- Removedemojis-list@2.1.0(transitive)
- Removedjson5@0.5.1(transitive)
- Removedloader-utils@0.2.17(transitive)
- Removedobject-assign@4.1.1(transitive)
Updatedloader-utils@^1.1.0