1.4.1 • Published 5 years ago

@thomann/sourcemap-service v1.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

microservice for providing versioned sourcemaps


Installation

Clone this repository and run the start script

$ git clone https://github.com/thomn/sourcemap-service.git
$ cd sourcemap-service
$ npm run start

Endpoints

  • GET: /sm: -> retrival
  • POST: /sm: -> upload
  • DELETE: /sm: -> removal

QueryParameters

  • v (mandatory): version, only integer values
  • n (mandatory): name, only alphanummeric values except .-_

Examples

post a map by a POST requesrt

curl -v -X POST -H "Content-Type: application/json" -d @styles.css.map "http://localhost:80/sm?v=2&n=styles.map"

get a map by a GET requesrt

http://localhost:80/sm?v=8&n=foo.js.map

delete a map by a DELETE request

http://localhost:80/sm?v=8&n=foo.js.map
1.4.1

5 years ago