New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pivotql-compiler-mapboxgl

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pivotql-compiler-mapboxgl - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

lib/cjs/index.js

40

package.json
{
"name": "pivotql-compiler-mapboxgl",
"version": "0.1.0",
"version": "0.2.0",
"description": "Compile PivotQL ASTs to mapbox filter queries.",
"main": "./index.js",
"main": "./lib/cjs/index.js",
"module": "lib/esm/index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.js"
},
"type": "module",
"files": [
"src",
"lib"
],
"scripts": {
"test": "jest",
"build": "echo \"nothing to do\""
"test": "BABEL_ENV=test jest",
"clean": "rimraf lib",
"build:esm": "BABEL_ENV=esmUnbundled babel --config-file ../../babel.config.js src --out-dir lib/esm --source-maps",
"build:cjs": "BABEL_ENV=cjs babel --config-file ../../babel.config.js src --out-dir lib/cjs --source-maps",
"build": "npm run clean && npm run build:esm && npm run build:cjs"
},

@@ -32,2 +39,7 @@ "repository": {

"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/node": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"babel-jest": "^27.3.1",
"eslint": "^7.32.0",

@@ -37,9 +49,17 @@ "eslint-config-prettier": "^8.3.0",

"jest": "^27.2.2",
"jest-esm-transformer": "^1.0.0",
"pivotql-parser-expression": "^0.1.0"
"pivotql-parser-expression": "^0.2.0",
"rimraf": "^3.0.2"
},
"jest": {
"transform": {
".js": "jest-esm-transformer"
"\\.js$": [
"babel-jest",
{
"configFile": "../../babel.config.js"
}
]
},
"transformIgnorePatterns": [
"node_modules/(?!(pivotql-parser-expression)/)"
],
"testMatch": [

@@ -46,0 +66,0 @@ "**/tests/**/*.[jt]s?(x)",

@@ -5,2 +5,25 @@ # PivotQL compiler for mapbox

## Install
```sh
npm install pivotql-compiler-mapboxgl
```
## Example
```js
import parse from 'pivotql-parser-expression';
import compile from 'pivotql-compiler-mapboxgl';
const query = '( height <= 20 or favorites.color == "green" ) and firstname in ["john", "doug"]';
const queryMB = compile(parse(query))
// Use query filter in layer style
```
## More information
See [main repository](https://github.com/jrmi/pivotql/) for more information.
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