Socket
Socket
Sign inDemoInstall

@rimbu/table

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/table - npm Package Compare versions

Comparing version 0.9.11 to 0.9.12

12

dist/main/custom/implementation/base.js

@@ -11,3 +11,3 @@ "use strict";

var TableEmpty = /** @class */ (function (_super) {
(0, tslib_1.__extends)(TableEmpty, _super);
tslib_1.__extends(TableEmpty, _super);
function TableEmpty(context) {

@@ -113,3 +113,3 @@ var _this = _super.call(this) || this;

var TableNonEmpty = /** @class */ (function (_super) {
(0, tslib_1.__extends)(TableNonEmpty, _super);
tslib_1.__extends(TableNonEmpty, _super);
function TableNonEmpty(context, rowMap, size) {

@@ -143,7 +143,7 @@ var _this = _super.call(this) || this;

.flatMap(function (_a) {
var _b = (0, tslib_1.__read)(_a, 2), row = _b[0], columns = _b[1];
var _b = tslib_1.__read(_a, 2), row = _b[0], columns = _b[1];
return columns
.stream()
.map(function (_a) {
var _b = (0, tslib_1.__read)(_a, 2), column = _b[0], value = _b[1];
var _b = tslib_1.__read(_a, 2), column = _b[0], value = _b[1];
return [row, column, value];

@@ -555,5 +555,5 @@ });

_this.rowMap.forEach(function (_a, _, rowHalt) {
var _b = (0, tslib_1.__read)(_a, 2), rowKey = _b[0], column = _b[1];
var _b = tslib_1.__read(_a, 2), rowKey = _b[0], column = _b[1];
column.forEach(function (_a, _, columnHalt) {
var _b = (0, tslib_1.__read)(_a, 2), columnKey = _b[0], value = _b[1];
var _b = tslib_1.__read(_a, 2), columnKey = _b[0], value = _b[1];
f([rowKey, columnKey, value], state.nextIndex(), halt_1);

@@ -560,0 +560,0 @@ if (state.halted) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./interface/base"), exports);
(0, tslib_1.__exportStar)(require("./interface/creators"), exports);
(0, tslib_1.__exportStar)(require("./implementation/base"), exports);
tslib_1.__exportStar(require("./interface/base"), exports);
tslib_1.__exportStar(require("./interface/creators"), exports);
tslib_1.__exportStar(require("./implementation/base"), exports);
//# sourceMappingURL=index.js.map

@@ -12,5 +12,5 @@ "use strict";

var _defaultContext = createContext();
exports.HashTableHashColumn = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, _defaultContext), { createContext: createContext, defaultContext: function () {
exports.HashTableHashColumn = tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () {
return _defaultContext;
} });
//# sourceMappingURL=interface.js.map

@@ -11,4 +11,4 @@ "use strict";

var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./hash-column/interface"), exports);
(0, tslib_1.__exportStar)(require("./sorted-column/interface"), exports);
tslib_1.__exportStar(require("./hash-column/interface"), exports);
tslib_1.__exportStar(require("./sorted-column/interface"), exports);
//# sourceMappingURL=index.js.map

@@ -13,5 +13,5 @@ "use strict";

var _defaultContext = createContext();
exports.HashTableSortedColumn = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, _defaultContext), { createContext: createContext, defaultContext: function () {
exports.HashTableSortedColumn = tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () {
return _defaultContext;
} });
//# sourceMappingURL=interface.js.map

@@ -15,6 +15,6 @@ "use strict";

var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./interface/variant"), exports);
(0, tslib_1.__exportStar)(require("./interface/generic"), exports);
(0, tslib_1.__exportStar)(require("@rimbu/table/hash-row"), exports);
(0, tslib_1.__exportStar)(require("@rimbu/table/sorted-row"), exports);
tslib_1.__exportStar(require("./interface/variant"), exports);
tslib_1.__exportStar(require("./interface/generic"), exports);
tslib_1.__exportStar(require("@rimbu/table/hash-row"), exports);
tslib_1.__exportStar(require("@rimbu/table/sorted-row"), exports);
//# sourceMappingURL=index.js.map

@@ -13,5 +13,5 @@ "use strict";

var _defaultContext = createContext();
exports.SortedTableHashColumn = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, _defaultContext), { createContext: createContext, defaultContext: function () {
exports.SortedTableHashColumn = tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () {
return _defaultContext;
} });
//# sourceMappingURL=interface.js.map

@@ -11,4 +11,4 @@ "use strict";

var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./hash-column/interface"), exports);
(0, tslib_1.__exportStar)(require("./sorted-column/interface"), exports);
tslib_1.__exportStar(require("./hash-column/interface"), exports);
tslib_1.__exportStar(require("./sorted-column/interface"), exports);
//# sourceMappingURL=index.js.map

@@ -12,5 +12,5 @@ "use strict";

var _defaultContext = createContext();
exports.SortedTableSortedColumn = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, _defaultContext), { createContext: createContext, defaultContext: function () {
exports.SortedTableSortedColumn = tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () {
return _defaultContext;
} });
//# sourceMappingURL=interface.js.map
{
"name": "@rimbu/table",
"version": "0.9.11",
"version": "0.9.12",
"description": "Immutable spreadsheet-like data structures containing row keys, column keys, and cell values",

@@ -64,3 +64,3 @@ "keywords": [

"test": "jest",
"test:random": "jest --config jest-random.config.json",
"test:random": "jest --config jest-random.config.json --runInBand",
"test:types": "tsd",

@@ -71,9 +71,9 @@ "typecheck": "tsc"

"dependencies": {
"@rimbu/base": "^0.8.1",
"@rimbu/collection-types": "^0.9.9",
"@rimbu/common": "^0.9.1",
"@rimbu/hashed": "^0.8.11",
"@rimbu/sorted": "^0.9.9",
"@rimbu/stream": "^0.10.9",
"tslib": "^2.3.1"
"@rimbu/base": "^0.8.2",
"@rimbu/collection-types": "^0.9.10",
"@rimbu/common": "^0.9.2",
"@rimbu/hashed": "^0.8.12",
"@rimbu/sorted": "^0.9.10",
"@rimbu/stream": "^0.10.10",
"tslib": "^2.4.0"
},

@@ -87,3 +87,3 @@ "publishConfig": {

},
"gitHead": "f44e1b43f07ac973555270806bbdde5f06400941"
"gitHead": "33dd7ca935f19f513586834a2ce1b1f886352ae7"
}

@@ -16,3 +16,3 @@ <p align="center">

For complete documentation please visit the [Table page](https://rimbu.org/docs/collections/table) in the _[Rimbu Docs](https://rimbu.org)_.
For complete documentation please visit the [Table page](https://rimbu.org/docs/collections/table) in the _[Rimbu Docs](https://rimbu.org)_, or directly see the _[Rimbu Table API Docs](https://rimbu.org/api/rimbu/table)_.

@@ -23,3 +23,3 @@ Or [Try Out Rimbu](https://codesandbox.io/s/github/vitoke/rimbu-sandbox/tree/main?previewwindow=console&view=split&editorsize=65&moduleview=1&module=/src/index.ts) in CodeSandBox.

All types are exported through [`@rimbu/core`](../core). It is recommended to use that package.
For convenience, all main types are also exported through [`@rimbu/core`](../core).

@@ -38,26 +38,37 @@ To install separately:

Create a file called `rimbu.ts` and add the following:
For Deno, the following approach is recommended:
> ```ts
> export * from 'https://deno.land/x/rimbu/table/mod.ts';
> ```
In the root folder of your project, create or edit a file called `import_map.json` with the following contents (where you should replace `x.y.z` with the desired version of Rimbu):
Or using a pinned version (`x.y.z`):
```json
{
"imports": {
"@rimbu/": "https://deno.land/x/rimbu@x.y.z/"
}
}
```
> ```ts
> export * from 'https://deno.land/x/rimbu/table@x.y.z/mod.ts';
> ```
**Note: The trailing slashes are important!**
Then import what you need from `rimbu.ts`:
In this way you can use relative imports from Rimbu in your code, like so:
```ts
import { Table } from './rimbu.ts';
import { List } from '@rimbu/core/mod.ts';
import { HashMap } from '@rimbu/hashed/mod.ts';
```
Because Rimbu uses complex types, it's recommended to use the `--no-check` flag (your editor should already have checked your code) and to specify a `tsconfig.json` file with the settings described below.
Note that for sub-packages, due to conversion limitations it is needed to import the `index.ts` instead of `mod.ts`, like so:
Running your script then becomes:
```ts
import { HashMap } from '@rimbu/hashed/map/index.ts';
```
> `deno run --no-check --config tsconfig.json <your-script>.ts`
To run your script (let's assume the entry point is in `src/main.ts`):
`deno run --import-map import_map.json src/main.ts`
Because Rimbu uses advanced types, this may slow down the type checking part when running your code. If you're able to rely on your code editor to provide type errors, you can skip the Deno type check using the `--no-check` flag:
`deno run --import-map import_map.json --no-check src/main.ts`
## Author

@@ -73,3 +84,3 @@

<img src = "https://contrib.rocks/image?repo=vitoke/iternal"/>
<img src = "https://contrib.rocks/image?repo=rimbu-org/rimbu"/>

@@ -76,0 +87,0 @@ Made with [contributors-img](https://contrib.rocks).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc