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

@mapbox/mapbox-gl-style-spec

Package Overview
Dependencies
Maintainers
28
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/mapbox-gl-style-spec - npm Package Compare versions

Comparing version 14.4.0 to 14.5.0-beta.1

composite.ts

5

bin/gl-style-composite.js
#!/usr/bin/env node
// @flow
/* eslint-disable no-process-exit */

@@ -8,5 +6,2 @@

import minimist from 'minimist';
/* eslint import/no-unresolved: [error, { ignore: ['^@mapbox/mapbox-gl-style-spec$'] }] */
/* $FlowFixMe[cannot-resolve-module] */
import {format, composite} from '@mapbox/mapbox-gl-style-spec';

@@ -13,0 +8,0 @@

#!/usr/bin/env node
// @flow
/* eslint-disable no-process-exit */

@@ -8,5 +6,2 @@

import minimist from 'minimist';
/* eslint import/no-unresolved: [error, { ignore: ['^@mapbox/mapbox-gl-style-spec$'] }] */
/* $FlowFixMe[cannot-resolve-module] */
import {format} from '@mapbox/mapbox-gl-style-spec';

@@ -13,0 +8,0 @@

#!/usr/bin/env node
// @flow
/* eslint-disable no-process-exit */

@@ -8,5 +6,2 @@

import minimist from 'minimist';
/* eslint import/no-unresolved: [error, { ignore: ['^@mapbox/mapbox-gl-style-spec$'] }] */
/* $FlowFixMe[cannot-resolve-module] */
import {format, migrate} from '@mapbox/mapbox-gl-style-spec';

@@ -13,0 +8,0 @@

#!/usr/bin/env node
// @flow
/* eslint-disable no-process-exit */

@@ -8,5 +6,2 @@

import minimist from 'minimist';
/* eslint import/no-unresolved: [error, { ignore: ['^@mapbox/mapbox-gl-style-spec$'] }] */
/* $FlowFixMe[cannot-resolve-module] */
import {validate, validateMapboxApiSupported} from '@mapbox/mapbox-gl-style-spec';

@@ -13,0 +8,0 @@

38

package.json
{
"name": "@mapbox/mapbox-gl-style-spec",
"version": "14.5.0-beta.1",
"description": "a specification for mapbox gl styles",
"version": "14.4.0",
"author": "Mapbox",
"license": "SEE LICENSE IN LICENSE.txt",
"repository": {
"type": "git",
"url": "git@github.com:mapbox/mapbox-gl-js.git"
},
"keywords": [

@@ -11,6 +16,7 @@ "mapbox",

],
"license": "SEE LICENSE IN LICENSE.txt",
"main": "./dist/index.cjs",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"type": "module",
"sideEffects": false,
"exports": {

@@ -28,11 +34,8 @@ ".": {

"test": "node ./test.js",
"copy-flow-typed": "cp -R ../../flow-typed .",
"build": "../../node_modules/.bin/rollup -c && ../../node_modules/.bin/rollup -c --environment esm",
"prepublishOnly": "npm run copy-flow-typed && npm run build",
"postpublish": "rm -r flow-typed dist/index.cjs"
"build": "npm run build-spec && npm run build-dts",
"build-dts": "dts-bundle-generator --no-banner --export-referenced-types=false -o ./dist/index.d.ts ./style-spec.ts",
"build-spec": "rollup -c && rollup -c --environment esm",
"prepublishOnly": "npm run build",
"postpublish": "rm dist/index.cjs dist/index.d.ts"
},
"repository": {
"type": "git",
"url": "git@github.com:mapbox/mapbox-gl-js.git"
},
"bin": {

@@ -47,13 +50,12 @@ "gl-style-migrate": "./bin/gl-style-migrate.js",

"@mapbox/point-geometry": "^0.1.0",
"@mapbox/unitbezier": "^0.0.0",
"@mapbox/unitbezier": "^0.0.1",
"cheap-ruler": "^3.0.1",
"csscolorparser": "~1.0.2",
"json-stringify-pretty-compact": "^2.0.0",
"json-stringify-pretty-compact": "^4.0.0",
"minimist": "^1.2.6",
"quickselect": "^2.0.0",
"rw": "^1.3.3",
"sort-object": "^0.3.2",
"quickselect": "^2.0.0",
"tinyqueue": "^2.0.3",
"cheap-ruler": "^3.0.1"
},
"sideEffects": false
"sort-object": "^3.0.3",
"tinyqueue": "^2.0.3"
}
}

@@ -1,3 +0,1 @@

// @noflow
import path from 'path';

@@ -9,3 +7,3 @@ import replace from '@rollup/plugin-replace';

import json from '@rollup/plugin-json';
import {flow} from '../../build/rollup_plugins.js';
import esbuild from 'rollup-plugin-esbuild';

@@ -19,3 +17,3 @@ // Build es modules?

const config = [{
input: `${__dirname}/style-spec.js`,
input: `${__dirname}style-spec.ts`,
output: {

@@ -28,24 +26,7 @@ name: 'mapboxGlStyleSpecification',

plugins: [
{
name: 'dep-checker',
resolveId(source, importer) {
// Some users reference modules within style-spec package directly, instead of the bundle
// This means that files within the style-spec package should NOT import files from the parent mapbox-gl-js tree.
// This check will cause the build to fail on CI allowing these issues to be caught.
if (importer && !importer.includes('node_modules')) {
const resolvedPath = path.join(importer, source);
const fromRoot = path.relative(__dirname, resolvedPath);
if (fromRoot.length > 2 && fromRoot.slice(0, 2) === '..') {
throw new Error(`Module ${importer} imports ${source} from outside the style-spec package root directory.`);
}
}
return null;
}
},
// https://github.com/zaach/jison/issues/351
replace({
preventAssignment: true,
include: /\/jsonlint-lines-primitives\/lib\/jsonlint.js/,
delimiters: ['', ''],
preventAssignment: true,
values: {

@@ -55,5 +36,5 @@ '_token_stack:': ''

}),
flow(),
esbuild({tsconfig: `${__dirname}/../../tsconfig.json`}),
json(),
unassert(),
unassert({include: ['*.js', '**/*.js', '*.ts', '**/*.ts']}),
resolve({

@@ -66,2 +47,3 @@ browser: true,

}];
export default config;
#!/usr/bin/env node
// @noflow
/* eslint-disable no-process-exit */

@@ -9,7 +8,9 @@

// @ts-expect-error - TS2345 - Argument of type 'Buffer' is not assignable to parameter of type 'string'.
const packageJson = JSON.parse(fs.readFileSync('./package.json'));
process.on('unhandledRejection', error => {
process.on('unhandledRejection', (error) => {
// don't log `error` directly, because errors from child_process.execSync
// contain an (undocumented) `envPairs` with environment variable values
// @ts-expect-error - TS2339 - Property 'message' does not exist on type 'unknown'.
console.log(error.message || 'unhandledRejection');

@@ -16,0 +17,0 @@ process.exit(1);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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