Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

racer

Package Overview
Dependencies
Maintainers
0
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

racer - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

1

lib/Backend.js

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -3,0 +2,0 @@ var extendStatics = function (d, b) {

7

lib/index.js

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.racer = exports.serverUse = exports.use = exports.RootModel = exports.Racer = exports.util = exports.UnloadEvent = exports.RemoveEvent = exports.MoveEvent = exports.LoadEvent = exports.InsertEvent = exports.ChangeEvent = exports.Context = exports.ModelData = exports.ChildModel = exports.Model = exports.Query = void 0;
exports.createModel = createModel;
exports.createBackend = createBackend;
exports.createBackend = exports.createModel = exports.racer = exports.serverUse = exports.use = exports.RootModel = exports.Racer = exports.util = exports.UnloadEvent = exports.RemoveEvent = exports.MoveEvent = exports.LoadEvent = exports.InsertEvent = exports.ChangeEvent = exports.Context = exports.ModelData = exports.ChildModel = exports.Model = exports.Query = void 0;
var Racer_1 = require("./Racer");

@@ -45,2 +42,3 @@ Object.defineProperty(exports, "Racer", { enumerable: true, get: function () { return Racer_1.Racer; } });

}
exports.createModel = createModel;
/**

@@ -59,1 +57,2 @@ * Creates racer backend. Can only be called in server process and throws error if called in browser.

}
exports.createBackend = createBackend;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Model_1 = require("./Model");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.CounterMap = exports.CollectionCounter = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.CollectionMap = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.Collection = exports.CollectionData = exports.ModelData = exports.ModelCollections = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var client_1 = require("sharedb/lib/client");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Model_1 = require("./Model");

@@ -1,2 +0,1 @@

"use strict";
/**

@@ -3,0 +2,0 @@ * Contexts are useful for keeping track of the origin of subscribes.

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reverse = void 0;
exports.asc = asc;
exports.desc = desc;
exports.desc = exports.asc = exports.reverse = void 0;
function FnPair(get, set) {

@@ -24,2 +21,3 @@ this.get = get;

}
exports.asc = asc;
function desc(a, b) {

@@ -32,1 +30,2 @@ if (a > b)

}
exports.desc = desc;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.Doc = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.EventListenerTree = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.EventMapTree = void 0;

@@ -0,1 +1,2 @@

/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -2,0 +3,0 @@ import { EventListenerTree } from './EventListenerTree';

@@ -1,2 +0,1 @@

"use strict";
// @ts-check

@@ -3,0 +2,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.FastMap = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.Filter = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Model_1 = require("./Model");

@@ -1,3 +0,3 @@

/// <reference path="bundle.d.ts" preserve="true" />
/// <reference path="connection.server.d.ts" preserve="true" />
/// <reference path="bundle.d.ts" />
/// <reference path="connection.server.d.ts" />
export { Model, ChildModel, RootModel, type ModelOptions, type UUID, type DefualtType } from './Model';

@@ -4,0 +4,0 @@ export { ModelData } from './collections';

@@ -1,2 +0,1 @@

"use strict";
/// <reference path="./bundle.ts" preserve="true" />

@@ -3,0 +2,0 @@ /// <reference path="./connection.server.ts" preserve="true" />

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -3,0 +2,0 @@ var extendStatics = function (d, b) {

@@ -57,3 +57,3 @@ import { type Context } from './contexts';

id(): UUID;
_child(): ChildModel<T>;
_child(): any;
}

@@ -60,0 +60,0 @@ /**

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -3,0 +2,0 @@ var extendStatics = function (d, b) {

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var util = require("../util");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Model_1 = require("./Model");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.Query = exports.Queries = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.Refs = exports.Ref = void 0;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ exports.RefLists = exports.RefList = void 0;

@@ -1,2 +0,1 @@

"use strict";
/**

@@ -3,0 +2,0 @@ * RemoteDoc adapts the ShareJS operation protocol to Racer's mutator

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var util = require("../util");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Model_1 = require("./Model");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Model_1 = require("./Model");

@@ -0,1 +1,2 @@

/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -2,0 +3,0 @@ import { Model, RootModel } from './Model';

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -3,0 +2,0 @@ var extendStatics = function (d, b) {

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var Backend_1 = require("./Backend");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,21 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isServer = exports.deepEqual = void 0;
exports.asyncGroup = asyncGroup;
exports.castSegments = castSegments;
exports.contains = contains;
exports.copy = copy;
exports.copyObject = copyObject;
exports.deepCopy = deepCopy;
exports.equal = equal;
exports.equalsNaN = equalsNaN;
exports.isArrayIndex = isArrayIndex;
exports.lookup = lookup;
exports.mayImpactAny = mayImpactAny;
exports.mayImpact = mayImpact;
exports.mergeInto = mergeInto;
exports.promisify = promisify;
exports.serverRequire = serverRequire;
exports.serverUse = serverUse;
exports.use = use;
exports.use = exports.serverUse = exports.serverRequire = exports.promisify = exports.mergeInto = exports.mayImpact = exports.mayImpactAny = exports.lookup = exports.isArrayIndex = exports.equalsNaN = exports.equal = exports.deepCopy = exports.copyObject = exports.copy = exports.contains = exports.castSegments = exports.asyncGroup = exports.isServer = exports.deepEqual = void 0;
/** @private */

@@ -39,2 +21,3 @@ exports.deepEqual = require('fast-deep-equal');

}
exports.asyncGroup = asyncGroup;
var AsyncGroup = /** @class */ (function () {

@@ -77,2 +60,3 @@ function AsyncGroup(cb) {

}
exports.castSegments = castSegments;
/** @private */

@@ -86,2 +70,3 @@ function contains(segments, testSegments) {

}
exports.contains = contains;
/** @private */

@@ -100,2 +85,3 @@ function copy(value) {

}
exports.copy = copy;
/** @private */

@@ -111,2 +97,3 @@ function copyObject(object) {

}
exports.copyObject = copyObject;
/** @private */

@@ -136,2 +123,3 @@ function deepCopy(value) {

}
exports.deepCopy = deepCopy;
/** @private */

@@ -141,2 +129,3 @@ function equal(a, b) {

}
exports.equal = equal;
/** @private */

@@ -147,2 +136,3 @@ function equalsNaN(x) {

}
exports.equalsNaN = equalsNaN;
/** @private */

@@ -152,2 +142,3 @@ function isArrayIndex(segment) {

}
exports.isArrayIndex = isArrayIndex;
/** @private */

@@ -164,2 +155,3 @@ function lookup(segments, value) {

}
exports.lookup = lookup;
/** @private */

@@ -173,2 +165,3 @@ function mayImpactAny(segmentsList, testSegments) {

}
exports.mayImpactAny = mayImpactAny;
/** @private */

@@ -183,2 +176,3 @@ function mayImpact(segments, testSegments) {

}
exports.mayImpact = mayImpact;
/** @private */

@@ -191,2 +185,3 @@ function mergeInto(to, from) {

}
exports.mergeInto = mergeInto;
/** @private */

@@ -222,2 +217,3 @@ function promisify(original) {

}
exports.promisify = promisify;
/**

@@ -235,2 +231,3 @@ * Conditionally require module only if in server process. No-op when called in browser.

}
exports.serverRequire = serverRequire;
/**

@@ -250,2 +247,3 @@ * Use plugin only if invoked in server process.

}
exports.serverUse = serverUse;
/**

@@ -267,1 +265,2 @@ * Use plugin

}
exports.use = use;

@@ -12,3 +12,3 @@ {

},
"version": "2.2.1",
"version": "2.2.2",
"main": "./lib/index.js",

@@ -49,3 +49,3 @@ "files": [

"typedoc-plugin-missing-exports": "^3.0.0",
"typescript": "~5.5"
"typescript": "~5.4.5"
},

@@ -52,0 +52,0 @@ "bugs": {

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