Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/url-meta

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/url-meta - npm Package Compare versions

Comparing version 5.2.2 to 5.2.3

dist/esmodule/main.js

38

package.json
{
"name": "@jsenv/url-meta",
"version": "5.2.2",
"version": "5.2.3",
"description": "Associate data to urls using patterns.",

@@ -32,5 +32,5 @@ "license": "MIT",

"start-exploring": "node ./script/start-exploring/start-exploring.js",
"test": "node ./script/test/test.js",
"test-with-coverage": "node ./script/test/test.js --coverage",
"eslint-check": "eslint .",
"test": "node --no-warnings --unhandled-rejections=strict ./script/test/test.js",
"test-with-coverage": "npm run test -- --coverage",
"eslint-check": "node ./node_modules/eslint/bin/eslint.js .",
"prettier-format": "node ./script/prettier-format/prettier-format.js",

@@ -40,8 +40,7 @@ "prettier-format-stage": "npm run prettier-format -- --staged",

"upload-coverage": "node ./script/upload-coverage/upload-coverage.js",
"generate-esmodule-bundle": "node --no-warnings ./script/generate-esmodule-bundle/generate-esmodule-bundle.js",
"generate-commonjs-bundle": "node ./script/generate-commonjs-bundle/generate-commonjs-bundle.js",
"generate-import-map": "node ./script/generate-import-map/generate-import-map.js",
"install-git-hooks": "node ./script/install-git-hooks/install-git-hooks.js",
"dist": "npm run clean && npm run generate-commonjs-bundle",
"clean": "rimraf dist && rimraf coverage",
"reinstall": "npm run clean && rimraf node_modules && npm install",
"dist": "npm run generate-esmodule-bundle && npm run generate-commonjs-bundle",
"prepublishOnly": "node ./script/transform-package/remove-postinstall.js && npm run dist",

@@ -53,17 +52,18 @@ "postpublish": "node ./script/transform-package/restore-postinstall.js",

"devDependencies": {
"@jsenv/assert": "1.2.2",
"@jsenv/codecov-upload": "3.2.0",
"@jsenv/core": "11.1.0",
"@jsenv/eslint-config": "12.2.0",
"@jsenv/git-hooks": "1.2.0",
"@jsenv/github-release-package": "1.1.1",
"@jsenv/node-module-import-map": "10.4.0",
"@jsenv/package-publish": "1.4.1",
"@jsenv/prettier-check-project": "5.4.0",
"@jsenv/prettier-config": "1.2.0",
"@jsenv/assert": "2.1.0",
"@jsenv/codecov-upload": "3.4.0",
"@jsenv/core": "12.2.1",
"@jsenv/eslint-config": "12.3.1",
"@jsenv/git-hooks": "1.3.3",
"@jsenv/github-release-package": "1.2.2",
"@jsenv/node-module-import-map": "11.0.1",
"@jsenv/package-publish": "1.5.1",
"@jsenv/prettier-check-project": "5.5.0",
"babel-eslint": "11.0.0-beta.0",
"eslint": "6.8.0",
"prettier": "1.19.1",
"rimraf": "3.0.1"
"playwright-chromium": "0.11.1",
"playwright-firefox": "0.11.1",
"playwright-webkit": "0.11.1",
"prettier": "1.19.1"
}
}

@@ -14,9 +14,8 @@ # url-meta

- [Installation](#Installation)
- [Documentation](#Documentation)
- [Pattern matching behaviour](#specifier-pattern-matching-behaviour)
- [applySpecifierPatternMatching](#applySpecifierPatternMatching)
- [metaMapToSpecifierMetaMap](#metaMapToSpecifierMetaMap)
- [normalizeSpecifierMetaMap](#normalizeSpecifierMetaMap)
- [urlCanContainsMetaMatching](#urlCanContainsMetaMatching)
- [urlToMeta](#urlToMeta)
- [Pattern matching behaviour](#specifier-pattern-matching-behaviour)
- [applySpecifierPatternMatching](#applySpecifierPatternMatching)
- [metaMapToSpecifierMetaMap](#metaMapToSpecifierMetaMap)
- [normalizeSpecifierMetaMap](#normalizeSpecifierMetaMap)
- [urlCanContainsMetaMatching](#urlCanContainsMetaMatching)
- [urlToMeta](#urlToMeta)

@@ -59,8 +58,8 @@ # Presentation

```console
npm install @jsenv/url-meta@5.2.2
npm install @jsenv/url-meta
```
# Documentation
Works with node 13.7.0 and 12.8.0 other versions not tested.
## Pattern matching behaviour
# Pattern matching behaviour

@@ -79,3 +78,3 @@ The table below gives an idea of how pattern matching behaves.

## applySpecifierPatternMatching
# applySpecifierPatternMatching

@@ -97,11 +96,11 @@ `applySpecifierPatternMatching` is a function returning a `matchResult` indicating if and how a `specifier` matches an `url`.

### specifier
## specifier
`specifier` parameter is a string looking like an url but where `*` and `**` can be used so that one specifier can match several url. This parameter is **required**.
### url
## url
`url` parameter is a string representing a url. This parameter is **required**.
### matchResult
## matchResult

@@ -127,6 +126,4 @@ `matchResult` represents if and how `specifier` matches `url`. It is returned by `applySpecifierPatternMatching`.

---
# metaMapToSpecifierMetaMap
## metaMapToSpecifierMetaMap
`metaMapToSpecifierMetaMap` is a function used to convert a `metaMap` into a `specifierMetaMap`.

@@ -163,14 +160,12 @@

### metaMap
## metaMap
`metaMap` parameter is an object where values are conditionnaly applied by specifiers. This parameter is **required**.
### specifierMetaMap
## specifierMetaMap
`specifierMetaMap` is an object where meta (other objects) are conditionnaly applied by specifier. It is returned by `metaMapToSpecifierMetaMap`.
---
# normalizeSpecifierMetaMap
## normalizeSpecifierMetaMap
`normalizeSpecifierMetaMap` is a function resolving `specifierMetaMap` keys against an `url`.

@@ -192,6 +187,4 @@

---
# urlCanContainsMetaMatching
## urlCanContainsMetaMatching
`urlCanContainsMetaMatching` is a function designed to ignore directory content that would never have specific metas.

@@ -238,6 +231,4 @@

---
# urlToMeta
## urlToMeta
`urlToMeta` is a function returning an object being the composition of all object associated with a matching specifier.

@@ -244,0 +235,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc