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

slippy-tile

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slippy-tile - npm Package Compare versions

Comparing version

to
1.4.2

# Changelog
## 1.4.2 - 2017-01-01
- Add providers as export
## 1.4.0 - 2016-12-04

@@ -4,0 +8,0 @@

"use strict";
const mercator = require("global-mercator");
const digitalglobe = require("./providers/digitalglobe");
exports.digitalglobe = digitalglobe;
const esri = require("./providers/esri");
exports.esri = esri;
const bing = require("./providers/bing");
exports.bing = bing;
const osm = require("./providers/osm");
exports.osm = osm;
const strava = require("./providers/strava");
exports.strava = strava;
const mercator = require('global-mercator');
const providers = require('./providers');
exports.providers = providers;
/**

@@ -85,4 +77,2 @@ * Substitutes the given tile information [x,y,zoom] to the URL tile scheme.

exports.sample = sample;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = parse;
//# sourceMappingURL=index.js.map
"use strict";
const slippyTile = require("./index");
const slippyTile = require('./index');
const TILE = [10, 15, 8];

@@ -8,4 +8,4 @@ test('parse.tile', () => {

test('parse', () => {
expect(!!slippyTile.parse(TILE, slippyTile.osm.standard.url)).toBeTruthy();
expect(!!slippyTile.parse(TILE, slippyTile.bing.imagery.url)).toBeTruthy();
expect(!!slippyTile.parse(TILE, slippyTile.providers.osm.standard.url)).toBeTruthy();
expect(!!slippyTile.parse(TILE, slippyTile.providers.bing.imagery.url)).toBeTruthy();
// Add {-y} provider

@@ -18,4 +18,4 @@ // Add {bbox} provider

test('providers', () => {
expect(slippyTile.osm.standard.url).toBe('https://{s}.tile.openstreetmap.org/{zoom}/{x}/{y}.png');
expect(slippyTile.providers.osm.standard.url).toBe('https://{s}.tile.openstreetmap.org/{zoom}/{x}/{y}.png');
});
//# sourceMappingURL=index.test.js.map

@@ -11,4 +11,4 @@ import * as slippyTile from './index'

test('parse', () => {
expect(!!slippyTile.parse(TILE, slippyTile.osm.standard.url)).toBeTruthy()
expect(!!slippyTile.parse(TILE, slippyTile.bing.imagery.url)).toBeTruthy()
expect(!!slippyTile.parse(TILE, slippyTile.providers.osm.standard.url)).toBeTruthy()
expect(!!slippyTile.parse(TILE, slippyTile.providers.bing.imagery.url)).toBeTruthy()
// Add {-y} provider

@@ -23,3 +23,3 @@ // Add {bbox} provider

test('providers', () => {
expect(slippyTile.osm.standard.url).toBe('https://{s}.tile.openstreetmap.org/{zoom}/{x}/{y}.png')
expect(slippyTile.providers.osm.standard.url).toBe('https://{s}.tile.openstreetmap.org/{zoom}/{x}/{y}.png')
})
import * as mercator from 'global-mercator'
import * as digitalglobe from './providers/digitalglobe'
import * as esri from './providers/esri'
import * as bing from './providers/bing'
import * as osm from './providers/osm'
import * as strava from './providers/strava'
import * as providers from './providers'
export { providers }
export {
bing,
digitalglobe,
esri,
osm,
strava,
}
/**

@@ -98,3 +87,1 @@ * Provider

}
export default parse
{
"name": "slippy-tile",
"version": "1.4.1",
"version": "1.4.2",
"description": "Helps convert Slippy Map url tile schemas",

@@ -10,3 +10,3 @@ "main": "index.js",

"docs": "tsc && cat HEADER.md > README.md && documentation build index.js -c documentation.yml -f md --shallow >> README.md && cat CHANGELOG.md >> README.md",
"lint": "tsc && tslint index.ts test.ts && documentation lint index.js"
"lint": "tsc && tslint index.ts index.test.ts && documentation lint index.js"
},

@@ -13,0 +13,0 @@ "repository": {

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 not supported yet

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 not supported yet

Sorry, the diff of this file is not supported yet