Skip to content

Commit

Permalink
npm run build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec committed Aug 22, 2019
1 parent 5afa3b8 commit 47b6a22
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 180 deletions.
14 changes: 0 additions & 14 deletions commonjs/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,17 +432,3 @@ function _areEquals(a, b) {
}
exports._areEquals = _areEquals;
;
/**
* Default export for backwards compat
*/
exports.default = {
JsonPatchError: exports.JsonPatchError,
deepClone: exports.deepClone,
getValueByPointer: getValueByPointer,
applyOperation: applyOperation,
applyPatch: applyPatch,
applyReducer: applyReducer,
validator: validator,
validate: validate,
_areEquals: _areEquals
};
26 changes: 0 additions & 26 deletions commonjs/duplex.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
Expand Down Expand Up @@ -190,18 +179,3 @@ function compare(tree1, tree2, invertible) {
return patches;
}
exports.compare = compare;
/**
* Default export for backwards compat
*/
// import just to re-export as default
var core = require("./core.js");
var helpers_js_2 = require("./helpers.js");
exports.default = __assign({}, core, {
// duplex
unobserve: unobserve,
observe: observe,
generate: generate,
compare: compare,
// helpers
JsonPatchError: helpers_js_2.PatchError, deepClone: helpers_js_1._deepClone, escapePathComponent: helpers_js_1.escapePathComponent,
unescapePathComponent: helpers_js_2.unescapePathComponent });
40 changes: 0 additions & 40 deletions dist/fast-json-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,20 +711,6 @@ function _areEquals(a, b) {
}
exports._areEquals = _areEquals;
;
/**
* Default export for backwards compat
*/
exports.default = {
JsonPatchError: exports.JsonPatchError,
deepClone: exports.deepClone,
getValueByPointer: getValueByPointer,
applyOperation: applyOperation,
applyPatch: applyPatch,
applyReducer: applyReducer,
validator: validator,
validate: validate,
_areEquals: _areEquals
};


/***/ }),
Expand All @@ -748,17 +734,6 @@ exports.unescapePathComponent = helpers.unescapePathComponent;
/* 3 */
/***/ (function(module, exports, __webpack_require__) {

var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
Expand Down Expand Up @@ -940,21 +915,6 @@ function compare(tree1, tree2, invertible) {
return patches;
}
exports.compare = compare;
/**
* Default export for backwards compat
*/
// import just to re-export as default
var core = __webpack_require__(1);
var helpers_js_2 = __webpack_require__(0);
exports.default = __assign({}, core, {
// duplex
unobserve: unobserve,
observe: observe,
generate: generate,
compare: compare,
// helpers
JsonPatchError: helpers_js_2.PatchError, deepClone: helpers_js_1._deepClone, escapePathComponent: helpers_js_1.escapePathComponent,
unescapePathComponent: helpers_js_2.unescapePathComponent });


/***/ })
Expand Down
4 changes: 2 additions & 2 deletions dist/fast-json-patch.min.js

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions module/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,3 @@ export declare function validator(operation: Operation, index: number, document?
*/
export declare function validate<T>(sequence: Operation[], document?: T, externalValidator?: Validator<T>): PatchError;
export declare function _areEquals(a: any, b: any): boolean;
declare const _default: {
JsonPatchError: typeof PatchError;
deepClone: typeof _deepClone;
getValueByPointer: typeof getValueByPointer;
applyOperation: typeof applyOperation;
applyPatch: typeof applyPatch;
applyReducer: typeof applyReducer;
validator: typeof validator;
validate: typeof validate;
_areEquals: typeof _areEquals;
};
/**
* Default export for backwards compat
*/
export default _default;
14 changes: 0 additions & 14 deletions module/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -424,17 +424,3 @@ export function _areEquals(a, b) {
return a !== a && b !== b;
}
;
/**
* Default export for backwards compat
*/
export default {
JsonPatchError: JsonPatchError,
deepClone: deepClone,
getValueByPointer: getValueByPointer,
applyOperation: applyOperation,
applyPatch: applyPatch,
applyReducer: applyReducer,
validator: validator,
validate: validate,
_areEquals: _areEquals
};
42 changes: 1 addition & 41 deletions module/duplex.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017 Joachim Wester
* MIT license
*/
import { _deepClone, escapePathComponent } from './helpers.js';
import { applyPatch, Operation } from './core.js';
import { Operation } from './core.js';
export interface Observer<T> {
object: T;
patches: Operation[];
Expand All @@ -27,37 +21,3 @@ export declare function generate<T>(observer: Observer<Object>, invertible?: boo
* Create an array of patches from the differences in two objects
*/
export declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];
/**
* Default export for backwards compat
*/
import * as core from './core.js';
import { PatchError as JsonPatchError, unescapePathComponent } from './helpers.js';
declare const _default: {
unobserve: typeof unobserve;
observe: typeof observe;
generate: typeof generate;
compare: typeof compare;
JsonPatchError: typeof JsonPatchError;
deepClone: typeof _deepClone;
escapePathComponent: typeof escapePathComponent;
unescapePathComponent: typeof unescapePathComponent;
getValueByPointer(document: any, pointer: string): any;
applyOperation<T>(document: T, operation: Operation, validateOperation?: boolean | core.Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean, index?: number): core.OperationResult<T>;
applyPatch<T>(document: T, patch: Operation[], validateOperation?: boolean | core.Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean): core.PatchResult<T>;
applyReducer<T>(document: T, operation: Operation, index: number): T;
validator(operation: Operation, index: number, document?: any, existingPathFragment?: string): void;
validate<T>(sequence: Operation[], document?: T, externalValidator?: core.Validator<T>): JsonPatchError;
_areEquals(a: any, b: any): boolean;
default: {
JsonPatchError: typeof JsonPatchError;
deepClone: typeof _deepClone;
getValueByPointer: typeof core.getValueByPointer;
applyOperation: typeof core.applyOperation;
applyPatch: typeof applyPatch;
applyReducer: typeof core.applyReducer;
validator: typeof core.validator;
validate: typeof core.validate;
_areEquals: typeof core._areEquals;
};
};
export default _default;
26 changes: 0 additions & 26 deletions module/duplex.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017 Joachim Wester
Expand Down Expand Up @@ -185,18 +174,3 @@ export function compare(tree1, tree2, invertible) {
_generate(tree1, tree2, patches, '', invertible);
return patches;
}
/**
* Default export for backwards compat
*/
// import just to re-export as default
import * as core from './core.mjs';
import { PatchError as JsonPatchError, unescapePathComponent } from './helpers.mjs';
export default __assign({}, core, {
// duplex
unobserve: unobserve,
observe: observe,
generate: generate,
compare: compare,
// helpers
JsonPatchError: JsonPatchError, deepClone: _deepClone, escapePathComponent: escapePathComponent,
unescapePathComponent: unescapePathComponent });
10 changes: 8 additions & 2 deletions test/spec/webpack/importSpec.build.js

Large diffs are not rendered by default.

0 comments on commit 47b6a22

Please sign in to comment.