-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
23 changed files
with
1,020 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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,20 @@ | ||
.* | ||
.env | ||
.eslintcache | ||
.example.env | ||
tsconfig* | ||
rollup.config.ts | ||
yarn.lock | ||
**/*.spec.ts | ||
**/*.snap | ||
|
||
.github | ||
docs | ||
.pnp.* | ||
.vscode | ||
.yarn/* | ||
coverage | ||
cspell.json | ||
node_modules | ||
swagger.json | ||
packages |
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,69 @@ | ||
[![logo][]](https://xylabs.com) | ||
|
||
# @xylabs/object | ||
|
||
[![npm-badge][]][npm-link] | ||
[![npm-downloads-badge][]][npm-link] | ||
[![jsdelivr-badge][]][jsdelivr-link] | ||
[![npm-license-badge][]](LICENSE) | ||
[![socket-badge][]][socket-link] | ||
|
||
> XY Labs generalized Javascript library | ||
## Table of Contents | ||
|
||
- [Description](#description) | ||
- [Install](#install) | ||
- [Maintainers](#maintainers) | ||
- [License](#license) | ||
- [Credits](#credits) | ||
|
||
## Description | ||
|
||
Common Javascript code that is used throughout XYO projects that use React. | ||
|
||
## Install | ||
|
||
Using npm: | ||
|
||
```sh | ||
npm i --save @xylabs/object | ||
``` | ||
|
||
Using yarn: | ||
|
||
```sh | ||
yarn add @xylabs/object | ||
``` | ||
|
||
## Documentation | ||
[Developer Reference](https://xylabs.github.io/sdk-js) | ||
|
||
## Maintainers | ||
|
||
- [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com)) | ||
- [Joel Carter](https://github.com/JoelBCarter) | ||
- [Matt Jones](https://github.com/jonesmac) | ||
- [Jordan Trouw](https://github.com/jordantrouw) | ||
|
||
## License | ||
|
||
See the [LICENSE](LICENSE) file for license details | ||
|
||
## Credits | ||
|
||
[Made with 🔥and ❄️ by XY Labs](https://xylabs.com) | ||
|
||
[logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg | ||
|
||
[npm-badge]: https://img.shields.io/npm/v/@xylabs/enum.svg | ||
[npm-link]: https://www.npmjs.com/package/@xylabs/enum | ||
|
||
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/enum | ||
[npm-license-badge]: https://img.shields.io/npm/l/@xylabs/enum | ||
|
||
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/enum/badge | ||
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/enum | ||
|
||
[socket-badge]: https://socket.dev/api/badge/npm/package/@xylabs/enum | ||
[socket-link]: https://socket.dev/npm/package/@xylabs/enum |
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,39 @@ | ||
{ | ||
"name": "@xylabs/enum", | ||
"version": "4.4.36", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
"homepage": "https://xyo.network", | ||
"bugs": { | ||
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues", | ||
"email": "[email protected]" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git" | ||
}, | ||
"license": "LGPL-3.0-or-later", | ||
"author": { | ||
"name": "XYO Development Team", | ||
"email": "[email protected]", | ||
"url": "https://xyo.network" | ||
}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./dist/neutral/index.d.ts", | ||
"default": "./dist/neutral/index.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"module": "dist/neutral/index.mjs", | ||
"types": "dist/neutral/index.d.ts", | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.2.6", | ||
"@xylabs/tsconfig": "^4.2.6", | ||
"typescript": "^5.7.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
File renamed without changes.
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 @@ | ||
export * from './Enum.ts' |
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,5 @@ | ||
{ | ||
"exclude": ["dist", "docs", "packages", "node_modules"], | ||
"extends": "@xylabs/tsconfig" | ||
} | ||
|
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,5 @@ | ||
{ | ||
"exclude": ["**/spec/*", "**/*.spec.*", "**/packages/*", "dist"], | ||
"extends": "./tsconfig.json" | ||
} | ||
|
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,5 @@ | ||
{ | ||
"$schema": "https://typedoc.org/schema.json", | ||
"entryPoints": ["./src/index.ts"], | ||
"tsconfig": "./tsconfig.typedoc.json" | ||
} |
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,10 @@ | ||
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
const config: XyTsupConfig = { | ||
compile: { | ||
browser: {}, | ||
neutral: { src: true }, | ||
node: {}, | ||
}, | ||
} | ||
|
||
export default config |
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { forget, ForgetPromise } from './forget.ts' | ||
export * from './forget.ts' |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import type { MercatorTile } from '../types.ts' | ||
|
||
const tilesEqual = (tile1: MercatorTile, tile2: MercatorTile) => { | ||
export const tilesEqual = (tile1: MercatorTile, tile2: MercatorTile) => { | ||
return tile1[0] === tile2[0] && tile1[1] === tile2[1] && tile1[2] === tile2[2] | ||
} | ||
|
||
export { tilesEqual } |
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
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import type { MercatorTile } from '../types.ts' | ||
import { tilesEqual } from './equal.ts' | ||
|
||
const tilesHasTile = (tiles: MercatorTile[], tile: MercatorTile) => { | ||
export const tilesHasTile = (tiles: MercatorTile[], tile: MercatorTile) => { | ||
for (const tileToCheck of tiles) { | ||
if (tilesEqual(tileToCheck, tile)) return true | ||
} | ||
return false | ||
} | ||
|
||
export { tilesHasTile } |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { tilesEqual } from './equal.ts' | ||
export * from './equal.ts' | ||
export * from './from/index.ts' | ||
export { tilesHasTile } from './hasTile.ts' | ||
export * from './hasSiblings.ts' | ||
export * from './hasTile.ts' | ||
export * from './hasTile.ts' |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './html/index.ts' | ||
export * from './lib/index.ts' | ||
export * from './meta/index.ts' | ||
export * from './models/index.ts' |
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
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
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