@emmetio/snippets-registry
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -198,7 +198,8 @@ 'use strict'; | ||
/** | ||
* Returns all snippets from current registry | ||
* Returns all available snippets from current registry. Snippets with the | ||
* same key are resolved by their storage priority. | ||
* @param {Object} options | ||
* @param {Object} options.type Return snippets only of given type: 'string' | ||
* or 'regexp'. Returns all snippets if not defined | ||
* @return {Map} | ||
* @return {Array} | ||
*/ | ||
@@ -220,3 +221,3 @@ all(options) { | ||
return result; | ||
return Array.from(result.values()); | ||
} | ||
@@ -223,0 +224,0 @@ |
@@ -194,7 +194,8 @@ class Snippet { | ||
/** | ||
* Returns all snippets from current registry | ||
* Returns all available snippets from current registry. Snippets with the | ||
* same key are resolved by their storage priority. | ||
* @param {Object} options | ||
* @param {Object} options.type Return snippets only of given type: 'string' | ||
* or 'regexp'. Returns all snippets if not defined | ||
* @return {Map} | ||
* @return {Array} | ||
*/ | ||
@@ -216,3 +217,3 @@ all(options) { | ||
return result; | ||
return Array.from(result.values()); | ||
} | ||
@@ -219,0 +220,0 @@ |
{ | ||
"name": "@emmetio/snippets-registry", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "JavaScript module for storing and retrieving Emmet snippets", | ||
@@ -9,5 +9,3 @@ "main": "dist/snippets-registry.cjs.js", | ||
"test": "mocha", | ||
"build": "npm run build:cjs && npm run build:es", | ||
"build:cjs": "rollup -c -o dist/snippets-registry.cjs.js -f cjs ./index.js", | ||
"build:es": "rollup -c -o dist/snippets-registry.es.js -f es ./index.js", | ||
"build": "rollup -c", | ||
"prepublish": "npm run test && npm run build" | ||
@@ -14,0 +12,0 @@ }, |
13971
396