smartloc 1.1.7 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ export declare const BaseLoc: {
2
+ new (): {};
3
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseLoc = void 0;
4
+ let baseClass = class {
5
+ };
6
+ try {
7
+ const component = require('react').Component;
8
+ if (component) {
9
+ baseClass = class extends component {
10
+ render() {
11
+ return this.toString();
12
+ }
13
+ };
14
+ }
15
+ }
16
+ catch (e) {
17
+ // nop
18
+ }
19
+ exports.BaseLoc = baseClass;
20
+ //# sourceMappingURL=base-loc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-loc.js","sourceRoot":"","sources":["../../src/core/base-loc.ts"],"names":[],"mappings":";;;AAAA,IAAI,SAAS,GAAG;CAAS,CAAC;AAC1B,IAAI;IACA,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;IAC7C,IAAI,SAAS,EAAE;QACX,SAAS,GAAG,KAAM,SAAQ,SAAS;YAC/B,MAAM;gBACF,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC3B,CAAC;SACJ,CAAA;KAEJ;CACJ;AAAC,OAAO,CAAC,EAAE;IACR,MAAM;CACT;AAEY,QAAA,OAAO,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartloc",
3
- "version": "1.1.7",
3
+ "version": "1.2.1",
4
4
  "description": "A i18n toolset for nodejs apis leveraging tagged strings",
5
5
  "main": "index.js",
6
6
  "scripts": {