@mapbox/mapbox-gl-style-spec
Advanced tools
Comparing version 14.4.0 to 14.5.0-beta.1
#!/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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3850455
62051
125
2
+ Added@mapbox/unitbezier@0.0.1(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedbytewise@1.1.0(transitive)
+ Addedbytewise-core@1.2.3(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedjson-stringify-pretty-compact@4.0.0(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedsort-asc@0.2.0(transitive)
+ Addedsort-desc@0.2.0(transitive)
+ Addedsort-object@3.0.3(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedtypewise@1.0.3(transitive)
+ Addedtypewise-core@1.2.0(transitive)
+ Addedunion-value@1.0.1(transitive)
- Removed@mapbox/unitbezier@0.0.0(transitive)
- Removedjson-stringify-pretty-compact@2.0.0(transitive)
- Removedsort-asc@0.1.0(transitive)
- Removedsort-desc@0.1.1(transitive)
- Removedsort-object@0.3.2(transitive)
Updated@mapbox/unitbezier@^0.0.1
Updatedsort-object@^3.0.3