slippy-tile
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -5,3 +5,4 @@ # Changelog | ||
- Remove all `request` related dependencies | ||
- Removed `js-yaml` dependency | ||
- Removed all `request` related dependencies | ||
- Removed `download` method | ||
@@ -8,0 +9,0 @@ - Added DigitalGlobe as provider |
"use strict"; | ||
const mercator = require('global-mercator'); | ||
const fs = require('fs'); | ||
const yml = require('js-yaml'); | ||
const path = require('path'); | ||
const providers = yml.safeLoad(fs.readFileSync(path.join(__dirname, 'providers.yml'), { encoding: 'utf-8' })); | ||
const providers = require(path.join(__dirname, 'providers')); | ||
/** | ||
@@ -8,0 +6,0 @@ * Substitutes the given tile information [x,y,zoom] to the URL tile scheme. |
import * as mercator from 'global-mercator' | ||
import * as fs from 'fs' | ||
import * as yml from 'js-yaml' | ||
import * as path from 'path' | ||
@@ -19,3 +17,3 @@ | ||
const providers: Providers = yml.safeLoad(fs.readFileSync(path.join(__dirname, 'providers.yml'), { encoding: 'utf-8' })) | ||
const providers: Providers = require(path.join(__dirname, 'providers')) | ||
@@ -22,0 +20,0 @@ /** |
{ | ||
"name": "slippy-tile", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Helps convert Slippy Map url tile schemas", | ||
@@ -8,4 +8,5 @@ "main": "index.js", | ||
"scripts": { | ||
"prepublish": "tsc", | ||
"test": "tsc && npm run lint && nyc ava", | ||
"prepublish": "npm run docs", | ||
"pretest": "tsc && js-yaml providers.yml > providers.json", | ||
"test": "npm run lint && nyc ava", | ||
"docs": "tsc && cat HEADER.md > README.md && documentation build index.js -c documentation.yml -f md >> README.md && cat CHANGELOG.md >> README.md", | ||
@@ -34,2 +35,3 @@ "lint": "tsc && tslint index.ts test.ts && documentation lint index.js" | ||
"nyc": "^8.3.0", | ||
"js-yaml": "^3.6.1", | ||
"ts-node": "^1.4.3", | ||
@@ -60,5 +62,4 @@ "tslint": "^3.15.1", | ||
"dependencies": { | ||
"global-mercator": "^1.3.2", | ||
"js-yaml": "^3.6.1" | ||
"global-mercator": "^1.3.2" | ||
} | ||
} |
@@ -70,2 +70,4 @@ [![Build Status](https://travis-ci.org/DenisCarriere/slippy-tile.svg?branch=master)](https://travis-ci.org/DenisCarriere/slippy-tile) | ||
- `{proj}`: default = EPSG:3857 | ||
<!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
# slippyTile | ||
@@ -147,3 +149,4 @@ | ||
- Remove all `request` related dependencies | ||
- Removed `js-yaml` dependency | ||
- Removed all `request` related dependencies | ||
- Removed `download` method | ||
@@ -150,0 +153,0 @@ - Added DigitalGlobe as provider |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
199956
1
22
508
164
10
- Removedjs-yaml@^3.6.1
- Removedargparse@1.0.10(transitive)
- Removedesprima@4.0.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedsprintf-js@1.0.3(transitive)