
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
dgtek-autocomplete-address
Advanced tools
For DGtek portal only. This package uses Google autocomplete and geolocation to check the address to be in the footprint (DGtek buildings and polygons).
yarn add dgtek-autocomplete-address
import DGtekAutocompleteAddress from 'dgtek-autocomplete-address'
window.customElements.define('dgtek-autocomplete-address', DGtekAutocompleteAddress)
<dgtek-autocomplete-address />
or
const component = document.body
.appendChild(document.createElement('dgtek-autocomplete-address'))
You can stylize elements:
document.getElementsByTagName('dgtek-autocomplete-address')[0]
.setStyleOption('snackBar', 'backgroundColor', '#09b')
.setStyleOption('snackBar', 'borderRadius', '0px')
.setStyleOption('snackBar', 'borderColor', '#ff0')
.setStyleOption('submitButton', 'backgroundColor', '#090')
There are some style properties which you can change:
Element | Style property | Default value |
---|---|---|
submitButton | borderRadius | 4px |
submitButton | border | 4px solid transparent |
submitButton | backgroundColor | #881f1a |
submitButton | fontFamily | Gilroy, "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif |
submitButton | fontSize | 16px |
submitButton | color | #fff |
submitButton | padding | 4px 8px |
input | width | 88% |
input | padding | 12px 16px |
input | border | solid 1px #bbb |
input | borderRadius | 4px |
input | fontFamily | Gilroy, "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif |
snackBar | backgroundColor | #881f1aa0 |
snackBar | borderColor | #881f1a |
snackBar | borderRadius | 4px |
snackBar | margin | 8px 16px |
snackBar | color | #fff |
snackBar | fontSize | .875rem |
snackBar | fontFamily | Gilroy, "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif |
link | fontFamily | Gilroy, "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif |
link | fontSize | 14px |
link | color | #ddd |
window.addEventListener('submit-address', function (event) {
console.log(event.detail)
})
Example of event.detail
content:
address: "45 CLARKE ST, SOUTHBANK VIC 3006"
addressComponents: { number1: '45', number2: '', number: '45', street: 'CLARKE', streetType: 'ST', …}
buildingId: null
coordinates: { lat: -37.8269008, lng: 144.9595298 }
estimatedServiceDeliveryTime: ""
status: "polygons-service-available"
The most important here is status
• on-net
• db-footprint
• db-build-commenced
• db-coming-soon
• polygons-service-available
• polygons-build-commenced
• polygons-coming-soon
During checking the address, a number of requests will be made to remote server.
Every request can fail.
window.addEventListener('server-error', function (event) {
console.log(event.detail) /* { error: true, errorType: String, errorMessage: String } */
})
You can catch errors with handler for open-error-popup event:
window.addEventListener('open-error-popup', function (event) {
console.log(event.detail) /* { error: true, errorType: String, errorMessage: String } */
})
FAQs
For DGtek portal only. This package uses Google autocomplete and geolocation to check the address to be in the footprint (DGtek buildings and polygons).
We found that dgtek-autocomplete-address demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.