From 1d9cc8a7af599f4f161df4d1a9cb8d4a17068a63 Mon Sep 17 00:00:00 2001 From: Markus Oberlehner Date: Tue, 22 Nov 2016 13:18:08 +0100 Subject: [PATCH] Change resolve return docblock to "Importer object or null.", fixes #75 --- dist/MagicImporter.js | 4 ++-- dist/cli.js | 4 ++-- dist/index.js | 4 ++-- js/lib/MagicImporter.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/MagicImporter.js b/dist/MagicImporter.js index a42a31f..069561e 100644 --- a/dist/MagicImporter.js +++ b/dist/MagicImporter.js @@ -116,7 +116,7 @@ MagicImporter.prototype.store = function store (url, selectorFilters) { /** * Synchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {string} Fully resolved import url or null. + * @return {string} Importer object or null. */ MagicImporter.prototype.resolveSync = function resolveSync (url) { var this$1 = this; @@ -174,7 +174,7 @@ MagicImporter.prototype.resolveSync = function resolveSync (url) { /** * Asynchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {Promise} Promise for a fully resolved import url. + * @return {Promise} Promise for importer object or null. */ MagicImporter.prototype.resolve = function resolve (url) { var this$1 = this; diff --git a/dist/cli.js b/dist/cli.js index fe71c37..16eb771 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -116,7 +116,7 @@ MagicImporter.prototype.store = function store (url, selectorFilters) { /** * Synchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {string} Fully resolved import url or null. + * @return {string} Importer object or null. */ MagicImporter.prototype.resolveSync = function resolveSync (url) { var this$1 = this; @@ -174,7 +174,7 @@ MagicImporter.prototype.resolveSync = function resolveSync (url) { /** * Asynchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {Promise} Promise for a fully resolved import url. + * @return {Promise} Promise for importer object or null. */ MagicImporter.prototype.resolve = function resolve (url) { var this$1 = this; diff --git a/dist/index.js b/dist/index.js index 1a011d3..7a3466a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -116,7 +116,7 @@ MagicImporter.prototype.store = function store (url, selectorFilters) { /** * Synchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {string} Fully resolved import url or null. + * @return {string} Importer object or null. */ MagicImporter.prototype.resolveSync = function resolveSync (url) { var this$1 = this; @@ -174,7 +174,7 @@ MagicImporter.prototype.resolveSync = function resolveSync (url) { /** * Asynchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {Promise} Promise for a fully resolved import url. + * @return {Promise} Promise for importer object or null. */ MagicImporter.prototype.resolve = function resolve (url) { var this$1 = this; diff --git a/js/lib/MagicImporter.js b/js/lib/MagicImporter.js index a33b5eb..fbe08c1 100644 --- a/js/lib/MagicImporter.js +++ b/js/lib/MagicImporter.js @@ -112,7 +112,7 @@ export default class MagicImporter { /** * Synchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {string} Fully resolved import url or null. + * @return {string} Importer object or null. */ resolveSync(url) { let data = null; @@ -168,7 +168,7 @@ export default class MagicImporter { /** * Asynchronously resolve the path to a node-sass import url. * @param {string} url - Import url from node-sass. - * @return {Promise} Promise for a fully resolved import url. + * @return {Promise} Promise for importer object or null. */ resolve(url) { return new Promise((promiseResolve) => {