-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7f4f27
commit bdcf667
Showing
93 changed files
with
25,456 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
# Geoportal resources access library | ||
|
||
This software is released under the licence CeCILL-B (Free BSD compatible) | ||
|
||
You may obtain a copy of the License at : | ||
|
||
http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt (english) | ||
|
||
http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt (french) | ||
|
||
see http://www.cecill.info/ | ||
|
||
Copyright (c) 2016-2017 IGN | ||
|
||
|
||
## Third party code : | ||
|
||
The Geoportal resources access library includes the following third party code : | ||
|
||
### ES6-Promise | ||
|
||
A tiny implementation of Promises/A+. | ||
Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and cont ributors (Conversion to ES6 API by Jake Archibald) | ||
Licensed under MIT license | ||
See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE | ||
Version v4.2.4 | ||
|
||
> Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors | ||
> | ||
> Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
> this software and associated documentation files (the "Software"), to deal in | ||
> the Software without restriction, including without limitation the rights to | ||
> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
> of the Software, and to permit persons to whom the Software is furnished to do | ||
> so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in all | ||
> copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
> SOFTWARE. |
Large diffs are not rendered by default.
Oops, something went wrong.
836 changes: 836 additions & 0 deletions
836
geoportal-access-lib-3.4.0-beta2/package/dist/GpServices-map.js
Large diffs are not rendered by default.
Oops, something went wrong.
10,814 changes: 10,814 additions & 0 deletions
10,814
geoportal-access-lib-3.4.0-beta2/package/dist/GpServices-src.js
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
geoportal-access-lib-3.4.0-beta2/package/dist/GpServices.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"name": "geoportal-access-lib", | ||
"version": "3.4.0-beta2", | ||
"date": "27/10/2023", | ||
"description": "French Geoportal resources access library", | ||
"module": "src/Gp.js", | ||
"main": "dist/GpServices-src.js", | ||
"homepage": "https://github.com/IGNF/geoportal-access-lib#readme", | ||
"scripts": { | ||
"clean": "echo \"Warning: no yet implemented!\" && exit 0", | ||
"setup": "npm install", | ||
"cover": "nyc --reporter=lcov --reporter=text npm run test", | ||
"eslint": "eslint src/", | ||
"build": "webpack --mode=none", | ||
"build:prod": "webpack --mode=production", | ||
"build:dev": "webpack --mode=development", | ||
"test": "mocha-webpack --reporter mochawesome --reporter-options reportDir=test-report,reportFilename=index --webpack-config ./test/webpack/webpack.test.js --glob \"test_*.js\" test/spec/", | ||
"test:serve": "webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.js", | ||
"test:serve:docker": "webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.docker.js", | ||
"test:end-to-end:serve": "webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.js", | ||
"test:end-to-end:serve:docker": "webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.docker.js", | ||
"sample": "npm run sample:serve", | ||
"sample:serve": "webpack-dev-server --mode=none --open-page samples/index-src.html --https --content-base . --output-public-path '/dist/' --port 9001 --open", | ||
"sample:serve:prod": "webpack-dev-server --mode=production --open-page samples/index-prod.html --content-base . --output-public-path '/dist/' --port 9001 --open", | ||
"sample:serve:dev": "webpack-dev-server --mode=development --open-page samples/index-map.html --content-base . --output-public-path '/dist/' --port 9001 --open", | ||
"doc": "npm run doc:serve", | ||
"doc:serve": "webpack-dev-server --content-base jsdoc --port 9001 --open" | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"src/**/*.js" | ||
], | ||
"instrument": false, | ||
"sourceMap": false | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/IGNF/geoportal-access-lib.git" | ||
}, | ||
"keywords": [ | ||
"geoportail", | ||
"webservice", | ||
"javascript", | ||
"es6" | ||
], | ||
"author": "IGNF", | ||
"license": "CECILL-B", | ||
"dependencies": { | ||
"es6-promise": "^4.2.4", | ||
"node-fetch": "^2.6.1", | ||
"xmldom": "^0.1.27" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.10", | ||
"@babel/plugin-transform-template-literals": "^7.12.1", | ||
"@babel/preset-env": "^7.12.11", | ||
"babel-loader": "^8.2.2", | ||
"chai": "^4.1.2", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"copy-webpack-plugin": "^5.1.2", | ||
"eslint": "^7.18.0", | ||
"eslint-config-standard": "^16.0.2", | ||
"eslint-loader": "^4.0.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"glob": "^7.1.2", | ||
"handlebars-layouts": "^3.1.4", | ||
"handlebars-webpack-plugin": "^1.4.1", | ||
"html-webpack-plugin": "^4.5.1", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
"jsdoc-webpack-plugin": "^0.3.0", | ||
"loglevel": "^1.6.1", | ||
"mocha": "^7.2.0", | ||
"mocha-loader": "^5.1.5", | ||
"mocha-webpack": "^2.0.0-beta.0", | ||
"mochawesome": "^6.2.1", | ||
"nyc": "^15.1.0", | ||
"path": "^0.12.7", | ||
"replace-bundle-webpack-plugin": "^1.0.0", | ||
"sinon": "^9.2.4", | ||
"sinon-es6": "0.0.3", | ||
"speed-measure-webpack-plugin": "^1.4.2", | ||
"string-template": "^1.0.0", | ||
"terser-webpack-plugin": "^2.3.8", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-dev-server": "^3.11.2", | ||
"webpack-node-externals": "^2.5.2", | ||
"webpack-shell-plugin": "^0.5.0" | ||
}, | ||
"bundledDependencies": [], | ||
"peerDependencies": {}, | ||
"optionalDependencies": {} | ||
} |
72 changes: 72 additions & 0 deletions
72
geoportal-access-lib-3.4.0-beta2/package/src/Exceptions/ErrorService.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* Errors raised by API for one among three reasons : wrong API usage, underlying service error or unknown reason. | ||
* | ||
* @property {String} message - Error message | ||
* @property {Number} status - Error status : when {@link Gp.Error.TYPE_SRVERR}, gives the [HTTP status of the underlying web service response]{@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} ; -1 otherwise. | ||
* @property {String} type - Error type ({@link Gp.Error.TYPE_SRVERR}, {@link Gp.Error.TYPE_USEERR} or {@link Gp.Error.TYPE_UNKERR}). | ||
* | ||
* @namespace | ||
* @alias Gp.Error | ||
* @param {Object|String} error - Options for creating error object. Can be a String (message) or an Object. | ||
* @param {String} error.message - Error message to return to user. | ||
* @param {enum} [error.type=TYPE_UNKERR] - Error type | ||
* @param {status} [error.status=-1] - Error status : when {@link Gp.Error.TYPE_SRVERR}, gives the [HTTP status of the underlying web service response]{@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}. | ||
* | ||
*/ | ||
function ErrorService (error) { | ||
if (!(this instanceof ErrorService)) { | ||
throw new TypeError("ErrorService constructor cannot be called as a function."); | ||
} | ||
|
||
var e = error; | ||
if (typeof error === "string" || error instanceof String) { | ||
this.message = error; | ||
this.status = -1; | ||
this.type = ErrorService.TYPE_UNKERR; | ||
} else { | ||
this.message = e.message || "undefined!?"; | ||
this.type = e.type; | ||
this.status = e.status || -1; | ||
} | ||
|
||
this.name = "ErrorService"; | ||
this.stack = (new Error()).stack; | ||
} | ||
|
||
/** | ||
* Error raised when underlying geoportal service answers on error. | ||
* | ||
* @type {String} | ||
* @constant | ||
* @static | ||
*/ | ||
ErrorService.TYPE_SRVERR = "SERVICE_ERROR"; | ||
/** | ||
* Error raised when funcion use is inappropriate | ||
* | ||
* @type {String} | ||
* @constant | ||
* @static | ||
*/ | ||
ErrorService.TYPE_USEERR = "USAGE_ERROR"; | ||
/** | ||
* Error raised when API can't perform the job for a reason other than the two other ones. | ||
* | ||
* @type {String} | ||
* @constant | ||
* @static | ||
*/ | ||
ErrorService.TYPE_UNKERR = "UNKNOWN_ERROR"; | ||
|
||
/** | ||
* @lends module:ErrorService | ||
*/ | ||
ErrorService.prototype = Object.create(Error.prototype, { | ||
constructor : { | ||
value : ErrorService, | ||
writable : true, | ||
configurable : true | ||
} | ||
}); | ||
|
||
export default ErrorService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* not yet implemented ! | ||
* @alias Gp.Formats.GML | ||
*/ |
Oops, something went wrong.