From e0c4b199576f70772695f82553fecb4aef1951ed Mon Sep 17 00:00:00 2001 From: Michael Ciniawsky Date: Fri, 26 Jan 2018 19:57:19 +0100 Subject: [PATCH] fix(options): support passing a `{Function}` (`options.insertInto`) --- options.json | 8 +++++++- package.json | 29 ++++++++++++++--------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/options.json b/options.json index 42ea1c6c..f64b78c6 100644 --- a/options.json +++ b/options.json @@ -14,6 +14,12 @@ "insertAt": { "type": ["string", "object"] }, + "insertInto": { + "anyOf": [ + { "type": "string" }, + { "instanceof": "Function" } + ] + }, "singleton": { "type": "boolean" }, @@ -24,5 +30,5 @@ "type": "boolean" } }, - "additionalProperties": true + "additionalProperties": false } diff --git a/package.json b/package.json index 494478fe..48ec2950 100644 --- a/package.json +++ b/package.json @@ -15,27 +15,26 @@ "options.json" ], "dependencies": { - "loader-utils": "^1.0.2", - "schema-utils": "^0.3.0" + "loader-utils": "^1.1.0", + "schema-utils": "^0.4.3" }, "devDependencies": { - "css-loader": "^0.28.3", - "file-loader": "^0.11.1", - "jsdom": "^9.12.0", - "memory-fs": "^0.4.1", - "mocha": "^3.4.2", - "sinon": "^2.4.1", + "css-loader": "^0.28.0", + "file-loader": "^1.0.0", + "jsdom": "^9.0.0", + "memory-fs": "^0.4.0", + "mocha": "^3.0.0", + "sinon": "^2.0.0", "standard-version": "^4.0.0", - "webpack": "^2.6.1" + "webpack": "^2.0.0" }, "scripts": { "test": "mocha", - "travis:test": "yarn run test", - "release": "yarn run standard-version" - }, - "repository": { - "type": "git", - "url": "git@github.com:webpack-contrib/style-loader.git" + "travis:test": "npm run test", + "release": "standard-version" }, + "repository": "https://github.com/webpack-contrib/style-loader.git", + "bugs": "https://github.com/webpack-contrib/style-loader/issues", + "homepage": "https://github.com/webpack-contrib/style-loader#readme", "license": "MIT" }