Installations
npm install @hanreev/types-ol
Developer Guide
Typescript
No
Module System
N/A
Node Version
16.19.0
NPM Version
8.19.3
Score
70.4
Supply Chain
99.5
Quality
76.2
Maintenance
100
Vulnerability
98.9
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (83.44%)
JavaScript (16.54%)
Shell (0.02%)
Developer
hanreev
Download Statistics
Total Downloads
109,112
Last Day
1
Last Week
65
Last Month
445
Last Year
12,390
GitHub Statistics
35 Stars
149 Commits
9 Forks
5 Watching
5 Branches
1 Contributors
Package Meta Information
Latest Version
7.2.0
Package Id
@hanreev/types-ol@7.2.0
Unpacked Size
679.44 kB
Size
131.13 kB
File Count
344
NPM Version
8.19.3
Node Version
16.19.0
Publised On
10 Jan 2023
Total Downloads
Cumulative downloads
Total Downloads
109,112
Last day
-66.7%
1
Compared to previous day
Last week
-52.6%
65
Compared to previous week
Last month
-39.5%
445
Compared to previous month
Last year
-24.6%
12,390
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
6
Dev Dependencies
29
OpenLayers TypeScript Definition
Definitions from this project will be syncronized with official @types/ol package.
As of v6.6.0, OpenLayers has officially provided its own TypeScript definitions. Installation of third party package like @hanreev/types-ol or @types/ol may no longer be needed.
This project contains TypeScript definition for OpenLayers v6.x.x
that includes all documented API and protected class members and methods.
Check v5.3.x branch for OpenLayers v5.3.x
definitions.
Installation
1# NPM 2npm i -D @hanreev/types-ol 3 4# Yarn 5yarn add -D @hanreev/types-ol
Development version
1# NPM 2npm i -D @hanreev/types-ol@dev 3 4# Yarn 5yarn add -D @hanreev/types-ol@dev
Usage
-
Add
ol
andol/*
tocompilerOptions.paths
intsconfig.json
1// file: tsconfig.json 2 3{ 4 "compilerOptions": { 5 ... 6 "baseUrl": "./", 7 "paths": { 8 "ol": ["node_modules/@hanreev/types-ol/ol"], 9 "ol/*": ["node_modules/@hanreev/types-ol/ol/*"] 10 }, 11 ... 12 } 13}
Configuring and Building TypeScript definition files
Configuration is located at jsdoc/conf.json
1// file: jsdoc/conf.json 2 3{ 4 "source": { 5 ... 6 "include": [ 7 "openlayers/src/ol" // openlayers source 8 ] 9 }, 10 ... 11 "typescript": { 12 "moduleRoot": "openlayers/src", // openlayers source 13 "definition": { 14 "strictReturnTypes": false // set to true to include undefined and null return. 15 } 16 }, 17 ... 18}
-
Install all dependencies
1# NPM 2npm i 3 4# Yarn 5yarn install
-
Run build
1# NPM 2npm run build-format && npm run lint 3 4# Yarn 5yarn build-format && yarn lint
-
Run test
1# NPM 2npm run lint-test && npm run test 3 4# Yarn 5yarn lint-test && yarn test
Note:
Some definitions were patched manually. If you found any error please create a new issue.
Changelog
License
Copyright © 2019 Rifa'i M. Hanif
Licensed under MIT License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/webpack.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/hanreev/types-ol/release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/hanreev/types-ol/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/webpack.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/hanreev/types-ol/webpack.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/webpack.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/hanreev/types-ol/webpack.yml/main?enable=pin
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 6 are checked with a SAST tool
Reason
16 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
2.5
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More