@rest-hooks/normalizr
Advanced tools
Comparing version 11.0.0-next.0 to 11.0.0
@@ -11,2 +11,2 @@ import LocalCache from './localCache.js'; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJMb2NhbENhY2hlIiwiZ2V0VW52aXNpdCIsImdldEVudGl0aWVzIiwiZGVub3JtYWxpemUiLCJpbnB1dCIsInNjaGVtYSIsImVudGl0aWVzIiwiYXJncyIsInVuZGVmaW5lZCIsImRhdGEiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVub3JtYWxpemUvZGVub3JtYWxpemUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IExvY2FsQ2FjaGUgZnJvbSAnLi9sb2NhbENhY2hlLmpzJztcbmltcG9ydCBnZXRVbnZpc2l0IGZyb20gJy4vdW52aXNpdC5qcyc7XG5pbXBvcnQgdHlwZSB7IFNjaGVtYSB9IGZyb20gJy4uL2ludGVyZmFjZS5qcyc7XG5pbXBvcnQgdHlwZSB7IERlbm9ybWFsaXplLCBEZW5vcm1hbGl6ZU51bGxhYmxlIH0gZnJvbSAnLi4vdHlwZXMuanMnO1xuaW1wb3J0IHsgZ2V0RW50aXRpZXMgfSBmcm9tICcuLi9XZWFrRW50aXR5TWFwLmpzJztcblxuZXhwb3J0IGNvbnN0IGRlbm9ybWFsaXplID0gPFMgZXh0ZW5kcyBTY2hlbWE+KFxuICBpbnB1dDogYW55LFxuICBzY2hlbWE6IFMgfCB1bmRlZmluZWQsXG4gIGVudGl0aWVzOiBhbnksXG4gIGFyZ3M6IHJlYWRvbmx5IGFueVtdID0gW10sXG4pOiBEZW5vcm1hbGl6ZU51bGxhYmxlPFM+IHwgc3ltYm9sID0+IHtcbiAgLy8gdW5kZWZpbmVkIG1lYW5zIGRvbid0IGRvIGFueXRoaW5nXG4gIGlmIChzY2hlbWEgPT09IHVuZGVmaW5lZCB8fCBpbnB1dCA9PT0gdW5kZWZpbm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CQUFBLEdBQU4vQyxNQUFNLENBQUVrQyxXQUFXLHFCQUFuQmEsb0JBQUEsQ0FBcUJaLElBQUksTUFBSyxXQUFXO0lBQ3ZELE1BQU1hLEtBQUssR0FBRzlDLE9BQU8sQ0FBQ3lCLEtBQUssRUFBRTNCLE1BQU0sQ0FBQzs7SUFFcEM7SUFDQSxJQUFJaUMsS0FBSyxFQUFFO01BQ1Q7TUFDQTtNQUNBLE9BQU8sQ0FDTCxPQUFPZSxLQUFLLEtBQUssUUFBUSxHQUFHcEMsU0FBUyxHQUFHb0MsS0FBSyxFQUM3QyxPQUFPQSxLQUFLLEtBQUssUUFBUSxFQUN6QixLQUFLLENBQ047SUFDSDtJQUNBLE9BQU8sQ0FDTCxPQUFPQSxLQUFLLEtBQUssUUFBUSxHQUFHcEMsU0FBUyxHQUFHb0MsS0FBSyxFQUM3QyxJQUFJLEVBQ0osT0FBT0EsS0FBSyxLQUFLLFFBQVEsQ0FDMUI7RUFDSCxDQUFDO0FBQ0gifQ== |
@@ -175,2 +175,2 @@ import { normalize as arrayNormalize } from './schemas/Array.js'; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJub3JtYWxpemUiLCJhcnJheU5vcm1hbGl6ZSIsIm9iamVjdE5vcm1hbGl6ZSIsIkRFTEVURUQiLCJ2aXNpdCIsInZhbHVlIiwicGFyZW50Iiwia2V5Iiwic2NoZW1hIiwiYWRkRW50aXR5IiwidmlzaXRlZEVudGl0aWVzIiwic3RvcmVFbnRpdGllcyIsImFyZ3MiLCJtZXRob2QiLCJBcnJheSIsImlzQXJyYXkiLCJhZGRFbnRpdGllcyIsImVudGl0aWVzIiwiaW5kZXhlcyIsInN0b3JlSW5kZXhlcyIsInN0b3JlRW50aXR5TWV0YSIsIm1ldGEiLCJwcm9jZXNzZWRFbnRpdHkiLCJpZCIsInNjaGVtYUtleSIsIk9iamVjdCIsImFzc2lnbiIsImV4aXN0aW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AgICBpblN0b3JlRW50aXR5LFxuICAgICAgICAgICAgICBwcm9jZXNzZWRFbnRpdHksXG4gICAgICAgICAgICApXG4gICAgICAgICAgOiBtZXJnZVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgICAgc3RvcmVFbnRpdHlNZXRhW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZVxuICAgICAgICAgID8gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgaW5TdG9yZU1ldGEsXG4gICAgICAgICAgICAgIG1ldGEsXG4gICAgICAgICAgICAgIGluU3RvcmVFbnRpdHksXG4gICAgICAgICAgICAgIHByb2Nlc3NlZEVudGl0eSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICA6IG1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGVudGl0aWVzW3NjaGVtYUtleV1baWRdID0gcHJvY2Vzc2VkRW50aXR5O1xuICAgICAgICBzdG9yZUVudGl0eU1ldGFbc2NoZW1hS2V5XVtpZF0gPSB7XG4gICAgICAgICAgLy8gVE9ETyhicmVha2luZyk6IFJlbW92ZSBzY2hlbWEuZXhwaXJlc2F0XG4gICAgICAgICAgZXhwaXJlc0F0OiBzY2hlbWEuZXhwaXJlc0F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nRpdHkgPSBlbnRpdGllc1tzY2hlbWFLZXldW2lkXTtcbiAgICBpZiAoZXhpc3RpbmdFbnRpdHkpIHtcbiAgICAgIGVudGl0aWVzW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlKGV4aXN0aW5nRW50aXR5LCBwcm9jZXNzZWRFbnRpdHkpO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb25zdCBpblN0b3JlRW50aXR5ID0gc3RvcmVFbnRpdGllc1tzY2hlbWFLZXldW2lkXTtcbiAgICAgIGxldCBpblN0b3JlTWV0YToge1xuICAgICAgICBkYXRlOiBudW1iZXI7XG4gICAgICAgIGV4cGlyZXNBdDogbnVtYmVyO1xuICAgICAgICBmZXRjaGVkQXQ6IG51bWJlcjtcbiAgICAgIH07XG4gICAgICAvLyB0aGlzIGNhc2Ugd2UgYWxyZWFkeSBoYXZlIHRoaXMgZW50aXR5IGluIHN0b3JlXG4gICAgICBpZiAoaW5TdG9yZUVudGl0eSAmJiAoaW5TdG9yZU1ldGEgPSBzdG9yZUVudGl0eU1ldGFbc2NoZW1hS2V5XVtpZF0pKSB7XG4gICAgICAgIGVudGl0aWVzW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlV2l0aFN0b3JlXG4gICAgICAgICAgPyBzY2hlbWEubWVyZ2VXaXRoU3RvcmUoXG4gICAgICAgICAgICAgIGluU3RvcmVNZXRhLFxuICAgICAgICAgICAgICBtZXRhLFxuICAgICAgICAgICAgICBpblN0b3JlRW50aXR5LFxuICAgICAgICAgICAgICBwcm9jZXNzZWRFbnRpdHksXG4gICAgICAgICAgICApXG4gICAgICAgICAgOiBtZXJnZVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgICAgc3RvcmVFbnRpdHlNZXRhW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZVxuICAgICAgICAgID8gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgaW5TdG9yZU1ldGEsXG4gICAgICAgICAgICAgIG1ldGEsXG4gICAgICAgICAgICAgIGluU3RvcmVFbnRpdHksXG4gICAgICAgICAgICAgIHByb2Nlc3NlZEVudGl0eSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICA6IG1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGVudGl0aWVzW3NjaGVtYUtleV1baWRdID0gcHJvY2Vzc2VkRW50aXR5O1xuICAgICAgICBzdG9yZUVudGl0eU1ldGFbc2NoZW1hS2V5XVtpZF0gPSB7XG4gICAgICAgICAgLy8gVE9ETyhicmVha2luZyk6IFJlbW92ZSBzY2hlbWEuZXhwaXJlc2F0XG4gICAgICAgICAgZXhwaXJlc0F0OiBzY2hlbWEuZXhwaXJlc0F0XG4gICAgICAgICAgICA/IHNjaGVtYS5leHBpcmVzQXQobWV0YSwgcHJvY2Vzc2VkRW50aXR5KVxuICAgICAgICAgICAgOiBtZXRhLmV4cGlyZXNBdCxcbiAgICAgICAgICBkYXRlOiBtZXRhLmRhdGUsXG4gICAgICAgICAgZmV0Y2hlZEF0OiBtZXRhLmZldGNoZWRBdCxcbiAgICAgICAgfTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAvLyB1cGRhdGUgaW5kZXhcbiAgICBpZiAoc2No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FBTztJQUFFSyxRQUFRO0lBQUVDLE9BQU87SUFBRTRDLE1BQU07SUFBRUM7RUFBVyxDQUFDO0FBQ2xELENBQUMifQ== |
@@ -28,2 +28,2 @@ const validateSchema = definition => { | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ2YWxpZGF0ZVNjaGVtYSIsImRlZmluaXRpb24iLCJwcm9jZXNzIiwiZW52IiwiTk9ERV9FTlYiLCJpc0FycmF5IiwiQXJyYXkiLCJsZW5ndGgiLCJFcnJvciIsImdldFZhbHVlcyIsImlucHV0IiwiT2JqZWN0Iiwia2V5cyIsIm1hcCIsImtleSIsImZpbHRlckVtcHR5IiwiaXRlbSIsInVuZGVmaW5lZCIsIm5vcm1hbGl6ZSIsInNjaGVtYSIsInBhcmVudCIsInZpc2l0IiwiYWRkRW50aXR5IiwidmlzaXRlZEVudGl0aWVzIiwic3RvcmVFbnRpdGllcyIsImFyZ3MiLCJ2YWx1ZXMiLCJ2YWx1ZSIsImluZGV4IiwiZGVub3JtYWxpemUiLCJ1bnZpc2l0IiwiZW50aXR5T3JJZCIsImZpbHRlciIsImluZmVyIiwiaW5kZXhlcyIsInJlY3Vyc2UiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvc2NoZW1hcy9BcnJheS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCB2YWxpZGF0ZVNjaGVtYSA9IGRlZmluaXRpb24gPT4ge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICBpZiAocHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJykge1xuICAgIGNvbnN0IGlzQXJyYXkgPSBBcnJheS5pc0FycmF5KGRlZmluaXRpb24pO1xuICAgIGlmIChpc0FycmF5ICYmIGRlZmluaXRpb24ubGVuZ3RoID4gMSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICBgRXhwZWN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QUFLLENBQ0hNLEtBQUssRUFDTFAsTUFBTSxFQUNOTixHQUFHLEVBQ0hLLE1BQU0sRUFDTkcsU0FBUyxFQUNUQyxlQUFlLEVBQ2ZDLGFBQWEsRUFDYkMsSUFDRixDQUNGLENBQUM7QUFDSCxDQUFDO0FBRUQsT0FBTyxNQUFNSSxXQUFXLEdBQUdBLENBQ3pCVixNQUFXLEVBQ1hULEtBQVUsRUFDVmUsSUFBb0IsRUFDcEJLLE9BQVksS0FDSjtFQUNSWCxNQUFNLEdBQUduQixjQUFjLENBQUNtQixNQUFNLENBQUM7RUFDL0IsT0FBT1QsS0FBSyxDQUFDRyxHQUFHLEdBQ1pILEtBQUssQ0FBQ0csR0FBRyxDQUFDa0IsVUFBVSxJQUFJRCxPQUFPLENBQUNDLFVBQVUsRUFBRVosTUFBTSxDQUFDLENBQUMsQ0FBQ2EsTUFBTSxDQUFDakIsV0FBVyxDQUFDLEdBQ3hFTCxLQUFLO0FBQ1gsQ0FBQztBQUVELE9BQU8sU0FBU3VCLEtBQUtBLENBQUNkLE1BQVcsRUFBRU0sSUFBUyxFQUFFUyxPQUFZLEVBQUVDLE9BQVksRUFBRTtFQUN4RSxPQUFPbEIsU0FBUztBQUNsQiJ9 |
@@ -40,2 +40,2 @@ import { isImmutable, denormalizeImmutable } from './ImmutableUtils.js'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJpc0ltbXV0YWJsZSIsImRlbm9ybWFsaXplSW1tdXRhYmxlIiwiSU5WQUxJRCIsIm5vcm1hbGl6ZSIsInNjaGVtYSIsImlucHV0IiwicGFyZW50Iiwia2V5IiwidmlzaXQiLCJhZGRFbnRpdHkiLCJ2aXNpdGVkRW50aXRpZXMiLCJzdG9yZUVudGl0aWVzIiwiYXJncyIsIm9iamVjdCIsIk9iamVjdCIsImFzc2lnbiIsImtleXMiLCJmb3JFYWNoIiwibG9jYWxTY2hlbWEiLCJ2YWx1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gc3ltYm9sPikge1xuICAgIGxldCBjdXJMaW5rID0gdGhpcy5uZXh0LmdldChlbnRpdHkpO1xuICAgIGlmICghY3VyTGluaykgcmV0dXJuIEVNUFRZO1xuICAgIHdoaWxlIChjdXJMaW5rLm5leHRQYXRoKSB7XG4gICAgICBjb25zdCBuZXh0RW50aXR5ID0gZ2V0RW50aXR5KGN1ckxpbmsubmV4dFBhdGgpO1xuICAgICAgY3VyTGluayA9IGN1ckxpbmsubmV4dC5nZXQobmV4dEVudGl0eSBhcyBhbnkpO1xuICAgICAgaWYgKCFjdXJMaW5rKSByZXR1cm4gRU1QVFk7XG4gICAgfVxuICAgIC8vIGN1ckxpbmsgZXhpc3RzLCBidXQgaGFzIG5vIHBhdGggLSBzbyBtdXN0IGhhdmUgYSB2YWx1ZVxuICAgIHJldHVybiBbY3VyTGluay52YWx1ZSwgY3VyTGluay5qb3VybmV5XSBhcyBbViwgUGF0aFtdXTtcbiAgfVxuXG4gIHNldChkZXBlbmRlbmNpZXM6IERlcDxLPltdLCB2YWx1ZTogVikge1xuICAgIGlmIChkZXBlbmRlbmNpZXMubGVuZ3RoIDwgMSkgdGhyb3cgbmV3IEtleVNpemUoKTtcbiAgICBsZXQgY3VyTGluazogTGluazxLLCBWPiA9IHRoaXMgYXMgeyBuZXh0OiBXZWFrTWFwPEssIExpbms8SywgVj4+IH07XG4gICAgZm9yIChjb25zdCB7IGVudGl0eSwgcGF0aCB9IG9mIGRlcGVuZGVuY2llcykge1xuICAgICAgbGV0IG5leHRMaW5rID0gY3VyTGluay5uZXh0LmdldChlbnRpdHkpO1xuICAgICAgaWYgKCFuZXh0TGluaykge1xuICAgICAgICBuZXh0TGluayA9IG5ldyBMaW5rPEssIFY+KCk7XG4gICAgICAgIGN1ckxpbmsubmV4dC5zZXQoZW50aXR5LCBuZXh0TGluayk7XG4gICAgICB9XG4gICAgICBjdXJMaW5rLm5leHRQYXRoID0gcGF0aDtcbiAgICAgIGN1ckxpbmsgPSBuZXh0TGluazt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HLEtBQUssQ0FBQyxDQUFDO0VBQ3RDLE9BQU9ILEtBQUs7QUFDZDtBQUlBO0FBQ0EsTUFBTVgsSUFBSSxDQUFzQjtFQUFBbEIsWUFBQTtJQUFBLEtBQzlCQyxJQUFJLEdBQUcsSUFBSUMsT0FBTyxDQUFnQixDQUFDO0VBQUE7QUFJckM7QUFFQSxNQUFNYSxPQUFPLFNBQVNrQixLQUFLLENBQUM7RUFBQWpDLFlBQUEsR0FBQWtDLElBQUE7SUFBQSxTQUFBQSxJQUFBO0lBQUEsS0FDMUJDLE9BQU8sR0FBRyx1Q0FBdUM7RUFBQTtBQUNuRCJ9 |
@@ -11,2 +11,2 @@ import LocalCache from './localCache.js'; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJMb2NhbENhY2hlIiwiZ2V0VW52aXNpdCIsImdldEVudGl0aWVzIiwiZGVub3JtYWxpemUiLCJpbnB1dCIsInNjaGVtYSIsImVudGl0aWVzIiwiYXJncyIsInVuZGVmaW5lZCIsImRhdGEiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVub3JtYWxpemUvZGVub3JtYWxpemUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IExvY2FsQ2FjaGUgZnJvbSAnLi9sb2NhbENhY2hlLmpzJztcbmltcG9ydCBnZXRVbnZpc2l0IGZyb20gJy4vdW52aXNpdC5qcyc7XG5pbXBvcnQgdHlwZSB7IFNjaGVtYSB9IGZyb20gJy4uL2ludGVyZmFjZS5qcyc7XG5pbXBvcnQgdHlwZSB7IERlbm9ybWFsaXplLCBEZW5vcm1hbGl6ZU51bGxhYmxlIH0gZnJvbSAnLi4vdHlwZXMuanMnO1xuaW1wb3J0IHsgZ2V0RW50aXRpZXMgfSBmcm9tICcuLi9XZWFrRW50aXR5TWFwLmpzJztcblxuZXhwb3J0IGNvbnN0IGRlbm9ybWFsaXplID0gPFMgZXh0ZW5kcyBTY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QUM7TUFDdEM2QyxjQUFjLENBQUMvQixFQUFFLENBQUMsQ0FBQ29CLEdBQUcsQ0FBQ1UsY0FBYyxFQUFFRyxHQUFHLENBQUM7SUFDN0M7SUFFQSxPQUFPQSxHQUFHO0VBQ1osQ0FBQztBQUNILENBQUMifQ== |
@@ -23,2 +23,2 @@ export default class LocalCache { | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJMb2NhbENhY2hlIiwiY29uc3RydWN0b3IiLCJsb2NhbENhY2hlIiwiZ2V0RW50aXR5IiwicGsiLCJzY2hlbWEiLCJlbnRpdHkiLCJjb21wdXRlVmFsdWUiLCJrZXkiLCJPYmplY3QiLCJjcmVhdGUiLCJsb2NhbENhY2hlS2V5IiwiZ2V0UmVzdWx0cyIsImlucHV0IiwiY2FjaGFibGUiLCJkYXRhIiwicGF0aHMiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVub3JtYWxpemUvbG9jYWxDYWNoZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSBDYWNoZSBmcm9tICcuL2NhY2hlLmpzJztcbmltcG9ydCB0eXBlIHsgRW50aXR5SW50ZXJmYWNlIH0gZnJvbSAnLi4vaW50ZXJmYWNlLmpzJztcbmltcG9ydCB0eXBlIHsgUGF0aCB9IGZyb20gJy4uL3R5cGVzLmpzJztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgTG9jYWxDYWNoZSBpbXBsZW1lbnRzIENhY2hlIHtcbiAgcHJpdmF0ZSBsb2NhbENhY2hlOiBSZWNvcmQ8c3RyaW5nLCBSZWNvcmQ8c3RyaW5nLCBhbnk+PiA9IHt9O1xuXG4gIGdldEVudGl0eShcbiAgICBwazogc3RyaW5nLFxuICAgIHNjaGVtYTogRW50aXR5SW50ZXJmYWNlLFxuICAgIGVudGl0eTogYW55LFxuICAgIGNvbXB1dGVWYWx1ZTogKGxvY2FsQ2FjaGV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dG9yZUVudGl0eSAmJiAoaW5TdG9yZU1ldGEgPSBzdG9yZUVudGl0eU1ldGFbc2NoZW1hS2V5XVtpZF0pKSB7XG4gICAgICAgIGVudGl0aWVzW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlV2l0aFN0b3JlXG4gICAgICAgICAgPyBzY2hlbWEubWVyZ2VXaXRoU3RvcmUoXG4gICAgICAgICAgICAgIGluU3RvcmVNZXRhLFxuICAgICAgICAgICAgICBtZXRhLFxuICAgICAgICAgICAgICBpblN0b3JlRW50aXR5LFxuICAgICAgICAgICAgICBwcm9jZXNzZWRFbnRpdHksXG4gICAgICAgICAgICApXG4gICAgICAgICAgOiBtZXJnZVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgICAgc3RvcmVFbnRpdHlNZXRhW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZVxuICAgICAgICAgID8gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgaW5TdG9yZU1ldGEsXG4gICAgICAgICAgICAgIG1ldGEsXG4gICAgICAgICAgICAgIGluU3RvcmVFbnRpdHksXG4gICAgICAgICAgICAgIHByb2Nlc3NlZEVudGl0eSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICA6IG1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICA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ICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgICAgc3RvcmVFbnRpdHlNZXRhW3NjaGVtYUtleV1baWRdID0gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZVxuICAgICAgICAgID8gc2NoZW1hLm1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgaW5TdG9yZU1ldGEsXG4gICAgICAgICAgICAgIG1ldGEsXG4gICAgICAgICAgICAgIGluU3RvcmVFbnRpdHksXG4gICAgICAgICAgICAgIHByb2Nlc3NlZEVudGl0eSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICA6IG1lcmdlTWV0YVdpdGhTdG9yZShcbiAgICAgICAgICAgICAgc2NoZW1hLFxuICAgICAgICAgICAgICBpblN0b3JlTWV0YSxcbiAgICAgICAgICAgICAgbWV0YSxcbiAgICAgICAgICAgICAgaW5TdG9yZUVudGl0eSxcbiAgICAgICAgICAgICAgcHJvY2Vzc2VkRW50aXR5LFxuICAgICAgICAgICAgKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGVudGl0aWVzW3NjaGVtYUtleV1baWRdID0gcHJvY2Vzc2VkRW50aXR5O1xuICAgICAgICBzdG9yZUVudGl0eU1ldGFbc2NoZW1hS2V5XVtpZF0gPSB7XG4gICAgICAgICAgLy8gVE9ETyhicmVha2luZyk6IFJlbW92ZSBzY2hlbWEuZXhwaXJlc2F0XG4gICAgICAgICAgZXhwaXJlc0F0OiBzY2hlbWEuZXhwaXJlc0F0XG4gICAgICAgICAgICA/IHNjaGVtYS5leHBpcmVzQXQobWV0YSwgcHJvY2Vzc2VkRW50aXR5KVxuICAgICAgICAgICAgOiBtZXRhLmV4cGlyZXNBdCxcbiAgICAgICAgICBkYXRlOiBtZXRhLmRhdGU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7SUFBRUMsT0FBTztJQUFFMEMsTUFBTTtJQUFFQztFQUFXLENBQUM7QUFDbEQsQ0FBQyJ9 |
@@ -28,2 +28,2 @@ const validateSchema = definition => { | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ2YWxpZGF0ZVNjaGVtYSIsImRlZmluaXRpb24iLCJwcm9jZXNzIiwiZW52IiwiTk9ERV9FTlYiLCJpc0FycmF5IiwiQXJyYXkiLCJsZW5ndGgiLCJFcnJvciIsImdldFZhbHVlcyIsImlucHV0IiwiT2JqZWN0Iiwia2V5cyIsIm1hcCIsImtleSIsImZpbHRlckVtcHR5IiwiaXRlbSIsInVuZGVmaW5lZCIsIm5vcm1hbGl6ZSIsInNjaGVtYSIsInBhcmVudCIsInZpc2l0IiwiYWRkRW50aXR5IiwidmlzaXRlZEVudGl0aWVzIiwic3RvcmVFbnRpdGllcyIsImFyZ3MiLCJ2YWx1ZXMiLCJ2YWx1ZSIsImluZGV4IiwiZGVub3JtYWxpemUiLCJ1bnZpc2l0IiwiZW50aXR5T3JJZCIsImZpbHRlciIsImluZmVyIiwiaW5kZXhlcyIsInJlY3Vyc2UiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvc2NoZW1hcy9BcnJheS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCB2YWxpZGF0ZVNjaGVtYSA9IGRlZmluaXRpb24gPT4ge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICBpZiAocHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJykge1xuICAgIGNvbnN0IGlzQXJyYXkgPSBBcnJheS5pc0FycmF5KGRlZmluaXRpb24pO1xuICAgIGlmIChpc0FycmF5ICYmIGRlZmluaXRpb24ubGVuZ3RoID4gMSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICBgRXhwZWN0ZWQgc2NoZW1hIG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QUssRUFDTFAsTUFBTSxFQUNOTixHQUFHLEVBQ0hLLE1BQU0sRUFDTkcsU0FBUyxFQUNUQyxlQUFlLEVBQ2ZDLGFBQWEsRUFDYkMsSUFDRixDQUNGLENBQUM7QUFDSCxDQUFDO0FBRUQsT0FBTyxNQUFNSSxXQUFXLEdBQUdBLENBQ3pCVixNQUFXLEVBQ1hULEtBQVUsRUFDVmUsSUFBb0IsRUFDcEJLLE9BQVksS0FDSjtFQUNSWCxNQUFNLEdBQUduQixjQUFjLENBQUNtQixNQUFNLENBQUM7RUFDL0IsT0FBT1QsS0FBSyxDQUFDRyxHQUFHLEdBQ1pILEtBQUssQ0FBQ0csR0FBRyxDQUFDa0IsVUFBVSxJQUFJRCxPQUFPLENBQUNDLFVBQVUsRUFBRVosTUFBTSxDQUFDLENBQUMsQ0FBQ2EsTUFBTSxDQUFDakIsV0FBVyxDQUFDLEdBQ3hFTCxLQUFLO0FBQ1gsQ0FBQztBQUVELE9BQU8sU0FBU3VCLEtBQUtBLENBQUNkLE1BQVcsRUFBRU0sSUFBUyxFQUFFUyxPQUFZLEVBQUVDLE9BQVksRUFBRTtFQUN4RSxPQUFPbEIsU0FBUztBQUNsQiJ9 |
@@ -44,2 +44,2 @@ import { isImmutable, denormalizeImmutable } from './ImmutableUtils.js'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJpc0ltbXV0YWJsZSIsImRlbm9ybWFsaXplSW1tdXRhYmxlIiwiSU5WQUxJRCIsIm5vcm1hbGl6ZSIsInNjaGVtYSIsImlucHV0IiwicGFyZW50Iiwia2V5IiwidmlzaXQiLCJhZGRFbnRpdHkiLCJ2aXNpdGVkRW50aXRpZXMiLCJzdG9yZUVudGl0aWVzIiwiYXJncyIsIm9iamVjdCIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwibG9jYWxTY2hlbWEiLCJ2YWx1ZSIsInVuZGVmaW5lZCIsImRlbm9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RLENBQUM7RUFDL0Q7RUFDQSxPQUFPQyxZQUFZO0FBQ3JCIn0= |
@@ -81,2 +81,2 @@ import { isImmutable } from './schemas/ImmutableUtils.js'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJpc0ltbXV0YWJsZSIsIldlYWtFbnRpdHlNYXAiLCJjb25zdHJ1Y3RvciIsIm5leHQiLCJXZWFrTWFwIiwiZ2V0IiwiZW50aXR5IiwiZ2V0RW50aXR5IiwiY3VyTGluayIsIkVNUFRZIiwibmV4dFBhdGgiLCJuZXh0RW50aXR5IiwidmFsdWUiLCJqb3VybmV5Iiwic2V0IiwiZGVwZW5kZW5jaWVzIiwibGVuZ3RoIiwiS2V5U2l6ZSIsInBhdGgiLCJuZXh0TGluayIsIkxpbmsiLCJkZXBUb1BhdGhzIiwidW5kZWZpbmVkIiwiZ2V0RW50aXRpZXMiLCJzdGF0ZSIsImVudGl0eUlzSW1tdXRhYmxlIiwia2V5IiwicGsiLCJnZXRJbiIsIl9zdGF0ZSRrZXkiLCJfcGF0aHMkIiwicGF0aHMiLCJtYXAiLCJkZXAiLCJzaGlmdCIsIkVycm9yIiwiYXJncyIsIm1lc3NhZ2UiXSwic291cmNlcyI6WyIuLi9zcmMvV2Vha0VudGl0eU1hcC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBpc0ltbXV0YWJsZSB9IGZyb20gJy4vc2NoZW1hcy9JbW11dGFibGVVdGlscy5qcyc7XG5pbXBvcnQgeyBQYXRoIH0gZnJvbSAnLi90eXBlcy5qcyc7XG5cbi8qKiBNYXBzIGVudGl0eSBkZXBlbmRlbmNpZXMgdG8gYSB2YWx1ZSAodXN1YWxseSB0aGVpciBkZW5vcm1hbGl6ZWQgZm9ybSlcbiAqXG4gKiBEZXBlbmRlbmNpZXMgc3RvcmUgYFBhdGhgIHRvIGVuYWJsZSBxdWljayB0cmF2ZXJzYWwgdXNpbm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CQyxJQUFJLEdBQUcsSUFBSUMsT0FBTyxDQUFnQixDQUFDO0VBQUE7QUFJckM7QUFFQSxNQUFNYSxPQUFPLFNBQVNrQixLQUFLLENBQUM7RUFBQWpDLFlBQUEsR0FBQWtDLElBQUE7SUFBQSxTQUFBQSxJQUFBO0lBQUEsS0FDMUJDLE9BQU8sR0FBRyx1Q0FBdUM7RUFBQTtBQUNuRCJ9 |
{ | ||
"name": "@rest-hooks/normalizr", | ||
"version": "11.0.0-next.0", | ||
"version": "11.0.0", | ||
"description": "Normalizes and denormalizes JSON according to schema for Redux and Flux applications", | ||
@@ -5,0 +5,0 @@ "homepage": "https://resthooks.io/docs/concepts/normalization", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
480694
0