Socket
Socket
Sign inDemoInstall

@emmetio/snippets-registry

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

7

dist/snippets-registry.cjs.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc